How to create 64-bit Python on OS X 10.6.2

Why? I want to do this because installing SciPy recommends it, and I thought it would be a good learning experience. This question has been asked before (for example, here ). The preferred answer is to use MacPorts, but as I said, I would like to understand how this is done.

Anyway, I grab the source (Python-2.6.4.tgz) and unzip it. I read instructions on how to build a 64-bit assembly "framework". As I understand it, I have to run

./configure --enable-framework --enable-universalsdk=/ --with-univeral-archs=intel

configure starts for a while ... and ends. When I do this, he clearly had a problem:

$ make
gcc -c -arch ppc -arch i386 -isysroot /  -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c
In file included from //usr/include/architecture/i386/math.h:626,
                 from //usr/include/math.h:28,
                 from Include/pyport.h:235,
                 from Include/Python.h:58,
                 from ./Modules/python.c:3:
//usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid.

gcc is being called with invalid arguments. Do I have the wrong arguments to configure, or should I set the compiler flags in the environment or what?

: configure... :

checking for OSX 10.5 SDK or later... yes

creating Modules/Setup
creating Modules/Setup.local
creating Makefile

Edit2: , readme...

! readme! .;)

+3
2

, :

, :

--with-universal-archs=intel

Mac/readme, . . .

+1

./configure . --enable-universalsdk SDK, /! gcc , . -isysroot. , , SDK /Developer/SDKs, .

, gcc -arch ppc -arch i386, -arch x86_64, Intel 64 .

+1

Source: https://habr.com/ru/post/1730877/


All Articles