Hi all, On 21 Jan 2008, at 22:35, Maarten Sneep wrote:
> Hi, > > I have trouble installing pytables 2.0.2 on Mac OS X, version 10.5.1 > on Intel. > > Here is the output of python setup.py build_ext --inplace > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/distutils/sysconfig.py", line 389, in _init_posix > raise DistutilsPlatformError(my_msg) > distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET > mismatch: now "10.3" but "10.5" during configure > ### end > > I have set the value of the environment variable > MACOSX_DEPLOYMENT_TARGET to 10.3 and 10.5 explicitly (by default it is > not set at all), but got the same results (from a clean pytables > source directory). Any clues? > > Kind regards, > > Maarten I had the same problem, and the fix was to change a file in Pyrex' distutils. Just sent the following to the Pyrex list. > Hi all, > > Sorry if this is known already: I've built Python from source on my > Leopard system, and then built Pyrex 0.9.8.2 using setup.py. That > works fine- but when I then try to build PyTables from source, I get > a MACOSX_DEPLOYMENT_TARGET mismatch. > > The reason is PyTables' setup.py has the following line: > from Pyrex.Distutils import build_ext > > and Pyrex.Distutils.DarwinSystem.py has the following line: > os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.3" > > regardless of what the value of MACOSX_DEPLOYMENT_TARGET was at > configure time. When I alter DarwinSystem.py to have > os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.5" the problem goes away. > > Cheers, > Anand Would it be possible to protect leopard users from this problem within PyTables pending a fix in Pyrex? Cheers, Anand ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users