[TIP] Problem with Python 2.4 and tox on Mac OS X Lion

Aaron Meurer asmeurer at gmail.com
Sun Jul 31 17:16:16 PDT 2011


I think MACOSX_DEPLOYMENT_TARGET is not so much related to
architecture as what version of Mac OS X is supposedly supported by
the compiled binary (I'm not 100% sure of this, as I'm no Cocoa
developer, though).

Likely you can solve the issue by recompiling Python 2.4 in Lion with XCode 4.

Aaron Meurer

On Sun, Jul 31, 2011 at 5:34 PM, Michael Foord
<fuzzyman at voidspace.org.uk> wrote:
> Hey all,
>
> This is using Python 2.7 from Activestate and Python 2.4 from Python.org on Mac OS X Lion. Could it be because Python 2.7 is 64 bit and Python 2.4 is 32 bit?
>
> _________________ [tox testenv:py24] ______________________________
> [TOX] ***creating virtualenv py24
> [TOX] /compile/mock/.tox$ /Library/Frameworks/Python.framework/Versions/2.4/bin/python2.4 ../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py --distribute --no-site-packages py24 >py24/log/0.log
> [TOX] ERROR: invocation failed, logfile: /compile/mock/.tox/py24/log/0.log
> [TOX] ERROR: /compile/mock/.tox$ /Library/Frameworks/Python.framework/Versions/2.4/bin/python2.4 ../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py --distribute --no-site-packages py24 >py24/log/0.log
> Traceback (most recent call last):
>  File "../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py", line 1922, in ?
>    main()
>  File "../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py", line 796, in main
>    never_download=options.never_download)
>  File "../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py", line 887, in create_environment
>    site_packages=site_packages, clear=clear))
>  File "../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py", line 1000, in install_python
>    fix_lib64(lib_dir)
>  File "../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py", line 1262, in fix_lib64
>    if [p for p in distutils.sysconfig.get_config_vars().values()
>  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/sysconfig.py", line 488, in get_config_vars
>    func()
>  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/sysconfig.py", line 373, in _init_posix
>    raise DistutilsPlatformError(my_msg)
> distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.5" but "10.3" during configure
>
> [TOX] ERROR: InvocationError: /Library/Frameworks/Python.framework/Versions/2.4/bin/python2.4 ../../../Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tox/virtualenv.py --distribute --no-site-packages py24 (see /compile/mock/.tox/py24/log/0.log)
>
>
> --
> http://www.voidspace.org.uk/
>
>
> May you do good and not evil
> May you find forgiveness for yourself and forgive others
> May you share freely, never taking more than you give.
> -- the sqlite blessing
> http://www.sqlite.org/different.html
>
>
>
>
>
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python
>



More information about the testing-in-python mailing list