On 19/08/2005, at 7:57 AM, Graham Dumpleton wrote:
The missing bit of information here is that Python on Tiger (10.4) is correctly putting in the config/Makefile used by distutils the required options. Ie., LDSHARED= $(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup BLDSHARED= $(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup The duplicated definition of the -undefined option causes grief when setup.py adds it as well. Thus, setup.py will thus need to check first whether the -undefined option already exists. Thus, setup.py should use: if sys.platform == "darwin": if not '-bundle' in sysconfig.get_config_var("LDSHARED").split(): sysconfig._config_vars["LDSHARED"] = \ string.replace(sysconfig.get_config_var("LDSHARED"), \ " -bundle "," -bundle -flat_namespace -undefined suppress ") sysconfig._config_vars["BLDSHARED"] = \ string.replace(sysconfig.get_config_var("BLDSHARED"), \ " -bundle "," -bundle -flat_namespace -undefined suppress ") In Tiger it actually uses '-undefined dynamic_lookup' instead of what I had used which is '-undefined suppress'. If though you try and use '-undefined dynamic_lookup' on Panther (10.3) or earlier you will run up against a further problem in that '-undefined dynamic_lookup' conflicts with the default compilation mode of being compatible with Mac OS X 10.1. Thus, still probably best to use '-undefined suppress', but the check means that it will only be used on older versions of Mac OS X anyway, or at least where the Python config isn't correct. I'll attach a patch to the JIRA report on the original problem shortly. Graham |
- mod_python 3.2.0-BETA available for testing Jim Gallacher
- Re: mod_python 3.2.0-BETA available for t... Gregory (Grisha) Trubetskoy
- Re: mod_python 3.2.0-BETA available for t... Graham Dumpleton
- Re: mod_python 3.2.0-BETA available f... Nicolas Lehuen
- Re: flex [was mod_python 3.2.0-BETA a... Jim Gallacher
- Re: mod_python 3.2.0-BETA available for t... Ron Reisor
- Re: mod_python 3.2.0-BETA available f... Graham Dumpleton
- Re: mod_python 3.2.0-BETA availab... Graham Dumpleton
- Re: mod_python 3.2.0-BETA ava... Graham Dumpleton
- Re: mod_python 3.2.0-BETA availab... Ron Reisor