[MacPorts] #22367: python26 +universal does not build 32-bits in SL

MacPorts noreply at macports.org
Wed Nov 4 09:56:45 PST 2009


#22367: python26 +universal does not build 32-bits in SL
---------------------------------+------------------------------------------
 Reporter:  orez.org@…           |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:                                       
Component:  ports                |     Version:  1.8.1                                
 Keywords:  python, snowleopard  |        Port:  python26                             
---------------------------------+------------------------------------------
 python26 was build with the universal method:
 {{{
 $ sudo port install python26 +universal
 --->  Computing dependencies for python26
 --->  Fetching python26
 --->  Attempting to fetch Python-2.6.4.tar.bz2 from
 http://www.python.org//ftp/python/2.6.4/
 --->  Verifying checksum(s) for python26
 --->  Extracting python26
 --->  Applying patches to python26
 --->  Configuring python26
 --->  Building python26
 --->  Staging python26 into destroot
 --->  Installing python26 @2.6.4_0+darwin+universal
 --->  Activating python26 @2.6.4_0+darwin+universal
 $ file /opt/local/bin/python2.6
 /opt/local/bin/python2.6: Mach-O universal binary with 2 architectures
 /opt/local/bin/python2.6 (for architecture x86_64):     Mach-O 64-bit
 executable x86_64
 /opt/local/bin/python2.6 (for architecture i386):       Mach-O executable
 i386
 }}}

 but still is 64-bits:
 {{{
 $ arch -i386 python
 Python 2.6.4 (r264:75706, Nov  4 2009, 18:31:32)
 [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import sys; sys.maxint
 9223372036854775807
 }}}

 this "arch trick" works with Apple's python
 {{{
 enigma:~ lup$ arch -i386
 /System/Library/Frameworks/Python.framework/Versions/2.6/bin/python
 Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
 [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import sys; sys.maxint
 2147483647
 >>> ^D
 $ /System/Library/Frameworks/Python.framework/Versions/2.6/bin/python
 Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
 [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import sys; sys.maxint
 9223372036854775807
 >>>
 }}}

 this prevents me from loading 32-bits libraries using ctypes.

-- 
Ticket URL: <http://trac.macports.org/ticket/22367>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list