[XML-SIG] Problem installing PyXML 0.8.2 on MacOSX

Mike Brown mike@skew.org
Sun, 25 May 2003 17:49:54 -0600 (MDT)


Michel Casabianca wrote:
> This version doesn't install on MacOSX with the following error message:
> 
> $ sudo python setup.py
> Traceback (most recent call last):
>    File "setup.py", line 58, in ?
>      if sys.platform[:6] == "darwin" and \
> NameError: name 'distutils' is not defined

Indeed, the imports are a little sloppy.

e.g. get_config_vars is imported, while there's a reference to
a fully qualified get_config_var (no 's')...

from distutils.sysconfig import get_config_vars
[...]
if sys.platform[:6] == "darwin" and \
   distutils.sysconfig.get_config_var("LDSHARED").find("-flat_namespace") == -1:

Hopefully someone will check in a fix.

> The previous version 0.8.1 installs correctly.

...but comes with a version of expat that may cause crashes for you.
0.8 is actually safer :)