[TIP] Problem with Python 2.4 and tox on Mac OS X Lion
Michael Foord
michael at voidspace.org.uk
Mon Aug 1 04:43:02 PDT 2011
On 1 Aug 2011, at 01:37, Ned Deily wrote:
> In article <92BE30B9-E2D4-456D-A639-C7225EF5810C at voidspace.org.uk>,
> Michael Foord <fuzzyman at voidspace.org.uk> wrote:
>> 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?
>
> No, it's a problem that's been around and gone through some iterations.
> See http://bugs.python.org/issue9516. The fix for 2.7 will be in 2.7.2.
> In the meantime, you should be able to work around the problem by
> forcing the environment variable MACOSX_DEPLOYMENT_TARGET to be 10.5
> when you invoke that Python 2.4 from the 2.7 subprocess.
Unfortunately because of the way tox launches multiple versions of python there is no single version of MACOSX_DEPLOYMENT_TARGET that works. I'll see if I can patch my 2.7 install in place or switch to using 2.6 for tox runs.
Thanks,
Michael Foord
--
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
More information about the testing-in-python
mailing list