-
Notifications
You must be signed in to change notification settings - Fork 114
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
Setup broken on pip 20.0 #37
Comments
How do we fix setup.py then? |
Hi Adriano, |
Hello Martino. Thanks for your attention! |
Looks like the "new way" to get the same data (not clear whether it's really needed) is by importing import packaging.tags
# get the first (most detailed) tag describing this system
# analogous to wheel.pep425tags.get_supported()[0]
sys_tag = packaging.tags.sys_tags().__next__()
# tag names are now referenced by name
opts = {'python_tag': sys_tag.interpreter, 'plat_name': sys_tag.platform} |
The following error arises when trying to build with pip 20.0
This is because
pip._internal.wheel
was moved, andpep425tags
is now calledpip._internal.utils.compatibility_tags
.I would like to point out that
pip._internal
is indeed internal to pip, you should not be using it in yoursetup.py
, and this is the reason.The text was updated successfully, but these errors were encountered: