This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients ned.deily, shibingli
Date 2012-07-24.10:14:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343124847.17.0.247853798102.issue14197@psf.upfronthosting.co.za>
In-reply-to
Content
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
$ ls -l /Library/Frameworks/Python.framework/Versions/3.2/lib
total 8
lrwxr-xr-x   1 root  wheel     9 Jul 15 17:40 libpython3.2.dylib@ -> ../Python
drwxrwxr-x   2 root  admin   170 Apr 10 11:27 pkgconfig/
drwxrwxr-x  32 root  admin  6290 Apr 10 11:27 python3.2/

# with patch
$ ls -l /Library/Frameworks/Python.framework/Versions/3.2/lib
total 16
lrwxr-xr-x   1 root  wheel     9 Jul 24 02:43 libpython3.2.dylib@ -> ../Python
lrwxr-xr-x   1 root  wheel     9 Jul 24 02:43 libpython3.2m.dylib@ -> ../Python
drwxrwxr-x   2 root  admin   170 Jul 24 02:38 pkgconfig/
drwxrwxr-x  34 root  admin  6494 Jul 24 02:38 python3.2/

# current
$ ls -l /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/config-3.2m/
total 256
-rw-rw-r--  1 root  admin  51118 Apr 10 11:27 Makefile
-rw-rw-r--  1 root  admin  15018 Apr 10 11:27 Setup
-rw-rw-r--  1 root  admin    370 Apr 10 11:27 Setup.config
-rw-rw-r--  1 root  admin     41 Apr 10 11:27 Setup.local
-rw-rw-r--  1 root  admin   2902 Apr 10 11:27 config.c
-rw-rw-r--  1 root  admin   1642 Apr 10 11:27 config.c.in
-rwxrwxr-x  1 root  admin   7122 Apr 10 11:27 install-sh*
lrwxr-xr-x  1 root  wheel     15 Jul 15 17:40 libpython3.2.a@ -> ../../../Python
lrwxr-xr-x  1 root  wheel     15 Jul 15 17:40 libpython3.2.dylib@ -> ../../../Python
-rwxrwxr-x  1 root  admin   7460 Apr 10 11:27 makesetup*
-rw-rw-r--  1 root  admin  18776 Apr 10 11:27 python.o

# with patch
$ ls -l /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/config-3.3m/
total 280
-rw-rw-r--  1 root  admin  55198 Jul 24 02:38 Makefile
-rw-rw-r--  1 root  admin  15009 Jul 24 02:38 Setup
-rw-rw-r--  1 root  admin    370 Jul 24 02:38 Setup.config
-rw-rw-r--  1 root  admin     41 Jul 24 02:38 Setup.local
-rw-rw-r--  1 root  admin   2963 Jul 24 02:38 config.c
-rw-rw-r--  1 root  admin   1619 Jul 24 02:38 config.c.in
-rwxrwxr-x  1 root  admin   7122 Jul 24 02:38 install-sh*
lrwxr-xr-x  1 root  wheel     15 Jul 24 02:43 libpython3.2.a@ -> ../../../Python
lrwxr-xr-x  1 root  wheel     15 Jul 24 02:43 libpython3.2.dylib@ -> ../../../Python
lrwxr-xr-x  1 root  wheel     15 Jul 24 02:43 libpython3.2m.a@ -> ../../../Python
lrwxr-xr-x  1 root  wheel     15 Jul 24 02:43 libpython3.2m.dylib@ -> ../../../Python
-rwxrwxr-x  1 root  admin   7460 Jul 24 02:38 makesetup*
-rw-rw-r--  1 root  admin  18896 Jul 24 02:38 python.o

# current
$ python3.2-config --ldflags
-L/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/config-3.2m -ldl -framework CoreFoundation -lpython3.2m -framework CoreFoundation Python.framework/Versions/3.2/Python

# with patch
$ python3.2-config --ldflags
-L/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.3/config-3.2m -ldl -framework CoreFoundation -lpython3.2m
History
Date User Action Args
2012-07-24 10:14:07ned.deilysetrecipients: + ned.deily, shibingli
2012-07-24 10:14:07ned.deilysetmessageid: <1343124847.17.0.247853798102.issue14197@psf.upfronthosting.co.za>
2012-07-24 10:14:06ned.deilylinkissue14197 messages
2012-07-24 10:14:06ned.deilycreate