On 19/08/2005, at 8:01 PM, Graham Dumpleton wrote:


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 ")

Whoops, that should be:

  if not '-undefined' in .....

The patch I attached to JIRA report is correct as it is a diff from actual code
that worked on MAC OS X 10.3. :-)

Graham

Reply via email to