-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xgboost 2.1.1 fix #20
Conversation
Linter check found the following problems:ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_e7dteiw572/clone` failed. (See above for error) The following problems have been found:===== WARNINGS =====
===== ERRORS =====
|
recipe/meta.yaml
Outdated
@@ -64,7 +64,7 @@ outputs: | |||
- m2-patch # [win] | |||
host: | |||
- python | |||
- pip | |||
- pip <24.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- pip <24.2 | |
- pip |
This issue is only affecting pip check, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right!
removed
recipe/meta.yaml
Outdated
@@ -79,7 +79,7 @@ outputs: | |||
- pandas >=1.2 | |||
test: | |||
requires: | |||
- pip | |||
- pip <24.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That works. Another option is to or true the pip check call.
A comment as to why would help though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, I added the upper bound pinning only for osx-arm64
, and added a comment
Linter check found the following problems:ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_ddyxn4v_y_/clone` failed. (See above for error) The following problems have been found:===== WARNINGS =====
===== ERRORS =====
|
That seems fine. I wonder if this is going to affect all other packages and we need to find some wider solution? Maybe patch out the check in pip, or put an upper bound in for all packages in the test section? |
I wonder the same. Also, this is failing on It is probably due to how the wheel is created and the tag in it is set (in this case |
In this specific case, we could probably just fix xgboost. I'd prefer that we actually fix the source of the problem instead of working around it. Remobing https://github.com/dmlc/xgboost/blob/v2.1.1/python-package/pyproject.toml#L48 should fix the issue. |
Ah, that runs https://github.com/dmlc/xgboost/blob/9c9db1259240bffe9040ed7ca6e3fb2c1bda80e4/python-package/hatch_build.py#L15 and sets the tag to a wrong value. Thanks nice catch! |
We should also flag that problem upstream. |
Linter check found the following problems:ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_47mqtbaio_/clone` failed. (See above for error) The following problems have been found:===== WARNINGS =====
===== ERRORS =====
|
pip check would fail with: | ||
"xgboost 2.1.1 requires nccl, which is not installed." | ||
remove the requirement nvidia-nccl-cu12 because we | ||
are not building for CUDA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor: even if we did, we would still need to remove it from the metadata since we don't ship that package. nvidia-nccl-cu12
is specific to the python/PyPI ecosystem and doesn't map to anything in our ecosystem, at least not in this form.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated the comment, thanks!
Linter check found the following problems:ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_f5aleri6d8/clone` failed. (See above for error) The following problems have been found:===== WARNINGS =====
===== ERRORS =====
|
Linter check found the following problems:ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_c0nub9j09t/clone` failed. (See above for error) The following problems have been found:===== WARNINGS =====
===== ERRORS =====
|
xgboost 2.1.1 fix
Destination channel: defaults
Links
Explanation of changes:
pip check
Notes for the reviewers
pip 24.2
seems to introduce a check on the tag within the wheel file.WHEEL content for osx-arm64:
compatible tags for the platform:
there is no
macosx_11_1_arm64
and thepip check
fails https://github.com/pypa/pip/blob/e98cc5ce078d8c8afd6804ff4e61aa2b12d05715/src/pip/_internal/commands/check.py#L29-L34What the internet says
pip check
flags packages with bad WHEEL metadata pypa/pip#12884 (comment)