You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While building the version 2.1.1 of the package for the conda ecosystem, the resulting tag for the wheel file on osx-arm64 has the Tag: py3-none-macosx_11_1_arm64 but among the platform tags that are checked, there is no macosx_11_1_arm64 platform tag and the pip check fails with:
xgboost 2.1.1 is not supported on this platform
As far as I understand from the issues and PRs relative to this problem, the idea of pip for the Darwin platform, was to flatten the version to macosx_11_0 for all of the 11.x.
This seems to occur for Python version 3.12 but not on [3.8, 3.9, 3.10, 3.11].
Workaround
I disabled the custom build hook for osx-arm64 and, it seems to work fine.
pip 24.2
introduces a check on the tag within the wheel file.xgboost
has a hatch custom build hook that overrides the creation of the tag.See: https://github.com/dmlc/xgboost/blob/v2.1.1/python-package/pyproject.toml#L48
Which should trigger:
xgboost/python-package/hatch_build.py
Line 15 in 9c9db12
While building the version
2.1.1
of the package for theconda
ecosystem, the resulting tag for the wheel file onosx-arm64
has theTag: py3-none-macosx_11_1_arm64
but among the platform tags that are checked, there is nomacosx_11_1_arm64
platform tag and the pip check fails with:As far as I understand from the issues and PRs relative to this problem, the idea of
pip
for theDarwin
platform, was to flatten the version tomacosx_11_0
for all of the11.x
.This seems to occur for Python version
3.12
but not on[3.8, 3.9, 3.10, 3.11]
.Workaround
I disabled the custom build hook for
osx-arm64
and, it seems to work fine.Other information
Full WHEEL content for osx-arm64:
compatible tags for the platform:
pip check
: https://github.com/pypa/pip/blob/e98cc5ce078d8c8afd6804ff4e61aa2b12d05715/src/pip/_internal/commands/check.py#L29-L34Other references
See: pypa/packaging#435
See PR: AnacondaRecipes/xgboost-feedstock#20
The text was updated successfully, but these errors were encountered: