Python 2.6 fails on compiling > Bug report

Ned Deily nad at acm.org
Fri Jan 9 18:46:28 EST 2009


In article 
<07832575-9b98-4a03-a181-4470a5a00fd6 at 35g2000pry.googlegroups.com>,
 googler.1.webmaster at spamgourmet.com wrote:

> hm... any ideas?

Have you tried specifying one of the universal SDKs, i.e. 
/Developer/SDKs/MacOSX10.n.sdk?  That's what the "official" python.org 
builds do.  The build script for the batteries-included installer is in 
the source tar ball at Mac/BuildScript/build-installer.py.

FWIW, I made a universal (4-way) batteries-included framework build for 
2.6 on 10.5 with the following patch to that script:

--- build-installer.py.bak 2008-12-17 20:02:59.000000000 -0800
+++ build-installer.py  2008-12-17 23:18:57.000000000 -0800
@@ -1,12 +1,9 @@
-#!/usr/bin/python2.3
+#!/usr/bin/python2.5
 """
 This script is used to build the "official unofficial" universal build 
on
-Mac OS X. It requires Mac OS X 10.4, Xcode 2.2 and the 10.4u SDK to do 
its
+Mac OS X. It requires Mac OS X 10.5, Xcode 3.0 and the 10.5u SDK to do 
its
 work.
 
-Please ensure that this script keeps working with Python 2.3, to avoid
-bootstrap issues (/usr/bin/python is Python 2.3 on OSX 10.4)
-
 Usage: see USAGE variable in the script.
 """
 import platform, os, sys, getopt, textwrap, shutil, urllib2, stat, 
time, pwd
@@ -65,10 +62,10 @@
 DEPSRC = os.path.expanduser('~/Universal/other-sources')
 
 # Location of the preferred SDK
-SDKPATH = "/Developer/SDKs/MacOSX10.4u.sdk"
+SDKPATH = "/Developer/SDKs/MacOSX10.5.sdk"
 #SDKPATH = "/"
 
-ARCHLIST = ('i386', 'ppc',)
+ARCHLIST = ('i386', 'ppc', 'x86_64', 'ppc64', )
 
 # Source directory (asume we're in Mac/BuildScript)
 SRCDIR = os.path.dirname(
@@ -630,7 +627,7 @@
     version = getVersion()
 
     print "Running configure..."
-    runCommand("%s -C --enable-framework --enable-universalsdk=%s 
LDFLAGS='-g -L%s/libraries/usr/local/lib' OPT='-g -O3 
-I%s/libraries/usr/local/include' 2>&1"%(
+    runCommand("%s -C --enable-framework --enable-universalsdk=%s 
--with-universal-archs=all LDFLAGS='-g -L%s/libraries/usr/local/lib' 
OPT='-g -O3 -I%s/libraries/usr/local/include' 2>&1"%(
         shellQuote(os.path.join(SRCDIR, 'configure')),
         shellQuote(SDKPATH), shellQuote(WORKDIR)[1:-1],
         shellQuote(WORKDIR)[1:-1]))
@@ -1017,7 +1014,7 @@
     parseOptions()
     checkEnvironment()
 
-    os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.3'
+    os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.5'
 
     if os.path.exists(WORKDIR):
         shutil.rmtree(WORKDIR)

-- 
 Ned Deily,
 nad at acm.org




More information about the Python-list mailing list