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
OS X framework builds do not create ABI-suffixed libpython3.x #58405
Comments
Artificial libpython3.2.a soft links to libpython3.2m.a |
Sorry, can you explain better what problem you are seeing including specific error messages? |
Use the Mac OS 10.7 compiler uWSGI Makefile.Py32 (make-f), will report a compile error. Information in the annex.Artificially will the soft libpython3.2.a / Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/config-3.2m under connection to a libpython3.2m.a, the problem-solving. |
Has been revised to permit BUG Description 在 2012-3-5,下午1:18, Ned Deily 写道:
|
Thank you for the additional information. It appears the problem is that, for OS X framework builds, the ABI suffix (added in PEP-3149) is not used to create the shared library dylib name in the framework lib directory. For example, $ cd Library/Frameworks/Python.framework/Versions/3.2
$ ./bin/python3.2-config --libs
-ldl -framework CoreFoundation -lpython3.2m
$ ls -l ./lib
total 8
lrwxr-xr-x 1 root wheel 9 Feb 24 09:44 libpython3.2.dylib@ -> ../Python
drwxrwxr-x 2 root admin 170 Feb 24 08:49 pkgconfig/
drwxrwxr-x 32 root admin 6290 Feb 24 08:49 python3.2/ But in an --enable-shared --with-pydebug build: $ ./bin/python3.2-config --libs
-ldl -framework CoreFoundation -lpython3.2dm
$ ls -l ./lib
total 6920
-r-xr-xr-x 1 nad pyd 3541320 Mar 4 23:40 libpython3.2dm.dylib*
drwxr-xr-x 2 nad pyd 170 Mar 4 23:40 pkgconfig/
drwxr-xr-x 32 nad pyd 6290 Mar 4 23:40 python3.2/ Looks like target frameworkinstallmaclib in Makefile.pre.in needs to be changed to include SOABI in the name for the lib symlink. |
The attached patch ensures that additional SOABI-suffixed symlinks are created in the framework lib and lib/pythonx.x/config-yy directories and fixes pythons.x-config to not return garbage data for the --ldflags option. # current # with patch # current # with patch # current # with patch |
Georg, I'd like to apply this for both 3.2.4 and 3.3.0b2. It's a low risk bug fix but does solve a real problem for users wanting to embed Python on OS X. bpo-15353 is also fixed by this. |
New changeset 2d4f290ea71c by Ned Deily in branch '3.2': New changeset 51ac5f06dd04 by Ned Deily in branch 'default': |
Fix applied for release in 3.2.4 and (with release manager approval) for 3.3.0b2. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: