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
KeyError when scheme hacks encounter missing purelib. #2936
Comments
Thank you for the report. The reason that only headers is defined for osx framework user is because that scheme is meant to extend a scheme in sysconfig and is only relevant if that scheme is in sysconfig. It would be possible to add a full copy of what is likely found in sysconfig in order to meet the expectations of the aforementioned hack. My preference would be for the hack to adjust its expectations or to remove the hack altogether if possible, but I realize that may not be possible in all scenarios. How much disruption would it be to leave the issue in place given there are workarounds, such as pinning old Setuptools or using SETUPTOOLS_USE_DISTUTILS=stdlib in affected environments? |
* in mitigation of #1560 * related to: pypa/setuptools#2936
* Pin setuptools due to a bug in the last version pypa/setuptools#2936 * Fix syntax
* Pin setuptools due to a bug in the last version pypa/setuptools#2936 * Fix syntax
* in mitigation of #1560 * related to: pypa/setuptools#2936
* in mitigation of #1560 * related to: pypa/setuptools#2936
setuptools version
v59.8.0
Python version
3.8.12
OS
Ubuntu 21.04
Additional environment information
No response
Description
Until recently, kombu was using some code like this hack to copy data files into the module directory.
Now we're seeing this error:
Because in v59.8.0
osx_framework_user
was added toINSTALL_SCHEMES
and it doesn't defined the purelib part of the dict.Should that new
osx_framework_user
have purelib defined? If it's not necessary, maybe it's best these old hacks break and requiring changing code to useMANIFEST.in
like this other SO post suggests?: https://stackoverflow.com/a/1857436Expected behavior
That new
osx_framework_user
inINSTALL_SCHEMES
should have purelib defined?How to Reproduce
Run:
on v59.8.0
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: