-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
Ability to build Python with --enable-shared
#1050
Comments
Rye's pythons are built with --enable-shared, and installs libpython and the library is there, but I think this is the same issue as #646 - the configuration paths to where those libraries are located are not correct and need to be set after installing the toolchain in its final location. Trying to find it, we see it is there: > find .rye/py -iname "*libpython*.so"
.rye/py/cpython@3.8.18/lib/libpython3.so
.rye/py/cpython@3.8.18/lib/libpython3.8.so
.rye/py/cpython@3.11.8/install/lib/libpython3.so
.rye/py/cpython@3.11.8/install/lib/libpython3.11.so
.rye/py/cpython@3.12.1/lib/libpython3.so
.rye/py/cpython@3.12.1/lib/libpython3.12.so
.rye/py/cpython@3.12.2/install/lib/libpython3.so
.rye/py/cpython@3.12.2/install/lib/libpython3.12.so Unfortunately it doesn't tell the truth about where it is
This With the sysconfigpatcher script - which is WIP and only works on linux I think, then it does the right thing
|
Hi @bluss Rye is great, a breath of fresh air in this messy python library space. Unfortunately, I also need shared library support, and, on mac, the following line comes up empty
There are no libpython* files under the .rye directory, so it appears that the libpython does not get installed on the mac. Thanks |
I haven't done any further experiments on macos, but the sysconfigpatcher script worked for me on macos, with it I can build something that seems to require the python lib, and |
Problem
Rye has a one major disadvantage right now - rye is installing python versions without
libpython.so
which leads to many problems with using python from other languages.For example, this #920 issue is mostly because of
libpython
is not available for rye's python.How it should work
For
apt
ordnf/yum
we havepython3-dev
andpython3-devel
to download shared objectFor
pyenv
we have https://github.com/pyenv/pyenv/blob/master/plugins/python-build/README.md#building-with---enable-sharedIMO, this feature is very important and is a blocker for most of python developers
The text was updated successfully, but these errors were encountered: