-
Notifications
You must be signed in to change notification settings - Fork 219
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
python-config scripts contain flags to link with libpython #85
Comments
That sounds correct to me. Any chance you'd be interested in putting
together a patch?
|
I poked around a bit and I think fixing this would involve either shipping our own version of python-config or monkey patching the existing one. For Python 2.6 through 3.3, this command should work: 3.4 and above use a shell script instead, for which this simpler replacement should work: Does this seem like an acceptable solution or is this too hacky? |
It's pretty hacky, but I don't see what else we can really do. IIUC it's a bug in upstream python-config (specifically, python-config and distutils should always do the same thing, and in this case it sounds like they aren't), and maybe we can fix that in future Python releases (and probably we should), but that's a slow process at best, and some of the Pythons we ship are EOL anyway. |
Also adds python-config symlink to Python 3 installs. Closes: pypa#85
I understand from #69 that it is recommended that extension modules be compiled with references to the CPython ABI left undefined, and that
libpythonX.Y.so
is therefore intentionally left omitted from the docker image.However, the
python-config
scripts in the Python installations still contain-lpythonX.Y
options. It would be great if this could be removed so that build scripts that use python-config to detect Python installations work correctly.The text was updated successfully, but these errors were encountered: