-
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
libpython*.so is missing #255
Comments
There isn't supposed to be. You do not need to link extension modules against libpython.so. |
This is intentional. The python interpreter can built in either "shared" mode (which creates See #30 for more gory details. |
I have the rather obscure use case of wanting to build Python binaries that link against libpython using the manylinux image. So this lack hit me too, but also my use case may be too obscure to be worth your time fixing. |
Ah, interesting. In my case however I'd like to actually link against libpython.so, rather than .a, so the Python used matches the patch version on the user's computer. I'm basically building a lightweight Python binary as an alternative to LD_PRELOADing; I'm assuming the user already has a Python install on their computer. Again, somewhat obscure use case :) |
I'd say that building things that are decidedly not manylinux-compatible fall outside the scope of the manylinux project. You can make your own Docker image based on manylinux that builds a new copy of Python with shared libraries enabled. You will have to do that anyway, as manylinux builds Python statically, so no libpython.so is created at any point during the process. Keep in mind that "having a Python install on your computer" is no guarantee of having libpython.so available. Your produced binaries, besides not qualifying for the manylinux tags, will not work with any static distribution of Python. |
@itamarst you can try to build a new image commenting out this line https://github.com/pypa/manylinux/blob/master/docker/build_scripts/build.sh#L187 |
Resurrecting this... would the maintainers be amenable to accepting a PR with a build-time flag that enables building shared cpython alongside the static cpython? So, conceptually Means people who need it can use the huge work put into manylinux images without maintaining a fork. (could be PY_BUILD_LIBS and it'd trigger leaving the |
Python installation seems to be strange, there is no
libpython.so
:Am I doing something wrong?
The text was updated successfully, but these errors were encountered: