> On 18.01.2018, at 14:58, Joni Orponen <j.orpo...@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

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to