-
Notifications
You must be signed in to change notification settings - Fork 67
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
distutils access ['headers']
from sysconfig scheme but the key in sysconfig is ['include']
#88
Comments
Probably #79 was implicated but also #23, where we learned that sysconfig supplies If someone has an idea how distutils could rely on |
I can see where CPython's copy of distutils simply treats 'include' as 'headers' and then appends the dist name. Probably this version of distutils could do the same. |
That is not correct, I didn't notice it earlier, but it's a bug in the CPython implementation. See https://bugs.python.org/issue44445 for some context. |
Thanks Filipe for pointing me to that bug (again). That's really helpful. As I understand it, the long term fix (in that bug) is to provide another key such as The medium-term fix is for platforms to include a A short-term fix might be for distutils to use the |
Setuptools PR at pypa/setuptools#2960. |
I suspect this is the cause of this trace, but I have yet to track down a reproduction: deadsnakes/issues#191 (comment)
here's where the key is accessed:
distutils/distutils/command/install.py
Lines 154 to 155 in 5ed4fe5
and here's where that key list is:
distutils/distutils/command/install.py
Line 92 in 5ed4fe5
here's an example sysconfig entry:
https://github.com/python/cpython/blob/31ff96712e8f89ac1056c2da880b44650002219f/Lib/sysconfig.py#L27-L38
here's what cpython does for this:
https://github.com/python/cpython/blob/31ff96712e8f89ac1056c2da880b44650002219f/Lib/distutils/command/install.py#L45-L51
The text was updated successfully, but these errors were encountered: