[XML-SIG] PyXML on Mac OSX 10.2 build error
Paul Tremblay
phthenry at earthlink.net
Tue Jun 10 18:31:53 EDT 2003
On Tue, Jun 10, 2003 at 12:58:12PM -0400, Gary Robinson wrote:
> Cc:
>
> > -------
> > # 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')
>
>
I also had the same troubles a few days ago, and have meant to post to
this list.
I solved it by adding
import distutils
To the top of the setup.py
Paul
--
************************
*Paul Tremblay *
*phthenry at earthlink.net*
************************
More information about the XML-SIG
mailing list