[XML-SIG] PyXML on Mac OSX 10.2 build error

Gary Robinson grobinson at transpose.com
Tue Jun 10 13:58:12 EDT 2003


> -------
> # python setup.py build
> Traceback (most recent call last):
> File "setup.py", line 58, in ?
>   if sys.platform[:6] == "darwin" and \
> distutils.sysconfig.get_config_var("LDSHARED").find("-flat_namespace") == -1:
> NameError: name 'distutils' is not defined
> -------
> 
> Any ideas?

Yes -- I had the same trouble.

Edit setup.py so that line 58 and onward looks like:
          
if sys.platform[:6] == "darwin" and \
       get_config_vars("LDSHARED")[0].find("-flat_namespace") == -1:
        # Mac OS X 
     LDFLAGS.append('-flat_namespace')


--Gary

-- 
<http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org>

Gary Robinson
CEO
Transpose, LLC
grobinson at transpose.com
207-942-3463
http://www.transpose.com
http://radio.weblogs.com/0101454





More information about the XML-SIG mailing list