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 srid
Recipients RolandJ, ned.deily, ronaldoussoren, srid
Date 2010-06-29.00:15:51
SpamBayes Score 6.113289e-05
Marked as misclassified No
Message-id <1277770554.62.0.268401261728.issue9045@psf.upfronthosting.co.za>
In-reply-to
Content
Here's one resolution:

1. Edit setup.py to make INCLUDE/LIB paths for OpenSSL use the SDKROOT (for 10.5+ compat):
[...]
search_for_ssl_incs_in = ["/Developer/SDKs/MacOSX10.5.sdk/usr/include/" if ON_SNOW_LEOPARD else "/usr/include"]
search_for_ssl_libs_in = ["/Developer/SDKs/MacOSX10.5.sdk/usr/lib/" if ON_SNOW_LEOPARD else "/usr/lib"]

2. Force the 10.5 SDK to use Apple's Tcl/Tk 8.5 (10.5 users must install ActiveTcl, and then launch Python as "arch -i386 python2.7" if they want to use tkinter):

$ sudo ln -s /System/Library/Frameworks/Tcl.framework /Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks/

$ sudo ln -s /System/Library/Frameworks/Tk.framework /Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks/

3. Build with 10.5 SDK

$ export MACOSX_DEPLOYMENT_TARGET=10.5
$ ./configure --enable-framework --enable-universalsdk=/Developer/SDKs/MacOSX10.5.sdk/ --with-universal-archs=intel
$ make

And the result is a Python that works on 10.5+ and gives you 64-bit Tkinter for 10.6 users.

This is how I am intending to build ActivePython 2.7 this weekend.
History
Date User Action Args
2010-06-29 00:15:55sridsetrecipients: + srid, ronaldoussoren, ned.deily, RolandJ
2010-06-29 00:15:54sridsetmessageid: <1277770554.62.0.268401261728.issue9045@psf.upfronthosting.co.za>
2010-06-29 00:15:52sridlinkissue9045 messages
2010-06-29 00:15:51sridcreate