-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Ensure that pip check
does not fail due to bad platform tag
#10755
Conversation
pip check
does not fail due to bad platform tag
@lorepirri Can I get a review for this fix? |
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.
Thanks Hyunsu! 🙏
Am wondering if just using packaging
directly might be more straightforward. Included a suggestion along these lines below
Please let me know what you think 🙂
Co-authored-by: jakirkham <jakirkham@gmail.com>
- "nvidia-nccl-cu12 ; platform_system == 'Linux' and platform_machine != 'aarch64'" | ||
+ "scipy" | ||
"scipy", | ||
- "nvidia-nccl-cu12 ; platform_system == 'Linux' and platform_machine != 'aarch64'", |
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.
As a note to reviewers, GitHub PR diffs of patches can look confusing
Would recommend looking at the patch on Hyunsu's fork (also included below)
This is just dropping the nvidia-nccl-cu12
line
diff --git python-package/pyproject.toml python-package/pyproject.toml
index 20d3f9974..953087ff4 100644
--- python-package/pyproject.toml
+++ python-package/pyproject.toml
@@ -30,7 +30,6 @@ classifiers = [
dependencies = [
"numpy",
"scipy",
- "nvidia-nccl-cu12 ; platform_system == 'Linux' and platform_machine != 'aarch64'",
]
[project.urls]
…0755) * Remove custom tag generation * Revert "Remove custom tag generation" This reverts commit fe3cf0e. * Fetch an accurate platform tag from Pip 22+ * Fix formatting * TOML allows trailing commas * Update patch * Add trailing comma * Fix up patch * Use `packaging` Co-authored-by: jakirkham <jakirkham@gmail.com> --------- Co-authored-by: jakirkham <jakirkham@gmail.com>
#10902) --------- Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu> Co-authored-by: jakirkham <jakirkham@gmail.com>
Closes #10705
sysconfig.get_platform
does not report an accurate platform tag; to use a correct platform tag, usepip
.