-
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
Fix python-config: no longer links with libpython. #87
Conversation
Also adds python-config symlink to Python 3 installs. Closes: pypa#85
Before we merge this and forget about it, can you add a link to the
bugs.python.org bug report for it?
…On Dec 20, 2016 16:42, "rdb" ***@***.***> wrote:
This monkey patches the python-config script so that build scripts that
use it don't try to link to libpythonX.X.so, which is absent from the
manylinux distribution. See #69
<#69> for more information.
This also adds python-config -> python3-config symlink to Python 3
installs, analogous to the existing python -> python3 symlink.
Closes: #85 <#85>
------------------------------
You can view, comment on, or merge this pull request online at:
#87
Commit Summary
- Fix python-config: no longer links with libpython.
File Changes
- *M* docker/build_scripts/build_utils.sh
<https://github.com/pypa/manylinux/pull/87/files#diff-0> (7)
Patch Links:
- https://github.com/pypa/manylinux/pull/87.patch
- https://github.com/pypa/manylinux/pull/87.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#87>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAlOaHRGRlmfcpOuKrSKtEsoCA_b5a-4ks5rKHYCgaJpZM4LSdJg>
.
|
I'm reluctant to file a bug on the Python tracker, because I'm not quite convinced that this is a good change to make to Python in general. It would break too many existing and valid use cases.
|
The thing about pushing it upstream is that while it's debatable whether Python extensions should link against -lpython, right now upstream is inconsistent about it: if you build CPython with (And these code paths are all totally platform specific BTW. On Windows you're forced to link against python.dll because there's no such thing as pulling a symbol out of the environment. And on Mac distutils jumps through hoops to disable the default two-level namespace and |
What's the status of this fix? Will there be a merge anytime soon? I've stumbled into this issue in my project. |
I still think we need to at least file an issue upstream before applying patches to our copy of Python's source code. |
I've created an issue on the upstream. You can expand it with more details if necessary. |
Manylinux provides docker images for building wheels on CentOS 5 (https://github.com/pypa/manylinux) Add script for building Essentia wheels using these images - Install newer yasm and cmake to build dependencies (CentOS 5 is in stone age) - Patch provided python-config scripts to avoid explicit linking to libpython (pypa/manylinux#87) - Build dependencies and wheels
Closing because too old. Please reopen if still interested. Thanks! |
This monkey patches the python-config script so that build scripts that use it don't try to link to libpythonX.X.so, which is absent from the manylinux distribution. See #69 for more information.
This also adds
python-config
->python3-config
symlink to Python 3 installs, analogous to the existingpython
->python3
symlink.Closes: #85