[Pythonmac-SIG] Problem with pip

Karsten Wolf karstenwo at googlemail.com
Thu Jan 18 11:05:05 EST 2018


> On 18.01.2018, at 14:58, Joni Orponen <j.orponen at 4teamwork.ch> wrote:
> 
> The offical CPython distributions seem to be compiled on 10.6 for compatibility reasons. It is easier to compile CPython forwards-compatible than to manually patch pyconfig.h after configure to exclude the syscalls not available on your older target platforms.

With the following config line you compile a backwards compatible Python (here 64-bit only since I don't like fiddling around with hard to compile fat-libs).

# for 2.7
env MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch x86_64 " LDFLAGS="-arch x86_64 " ./configure --enable-framework --enable-ipv6 --enable-toolbox-glue

and it yields a Python that can be py2apped and run on 10.6 as long as you don't use newer Frameworks or libs that need OSX > 1.6


-karsten



More information about the Pythonmac-SIG mailing list