Re: [lxml-dev] Re: Namespace API for extension functions

Paul Everitt wrote:
Sounds like you just used setuptools... :) Still, if it didn't compile, I'd wonder why there should be an .egg file in dist. Have you tried "python setup.py bdist_egg" ? Then, this should work: easy_install dist/lxml_XXXXXXXX.egg See http://peak.telecommunity.com/DevCenter/EasyInstall#downloading-and-installi... Regarding the problem, I found this in my site-packages directory: ----------- def swig_sources (self, sources, extension=None): .../python2.4/site-packages/Pyrex/Distutils/build_ext.py def swig_sources(self, sources, *otherargs): sources = _build_ext.swig_sources(self, sources) or sources return _du_build_ext.swig_sources(self, sources, *otherargs) .../python2.4/site-packages/setuptools-0.6a9-py2.4.egg/setuptools/command/build_ext.py ----------- So it's definitely related to setuptools and Pyrex. However, as I said, it runs here, so I can't quite figure out what went wrong there... Stefan

Stefan Behnel wrote:
Ahh, my mistake. The egg was around from previously (Dec 27). "python .setup.py clean" didn't remove the earlier egg.
Still, if it didn't compile, I'd wonder why there should be an .egg file in dist.
Have you tried "python setup.py bdist_egg" ? Then, this should work:
Same error (on self.swig_sources) However, I'm ok for now, as I doubt the source has changed dramatically since Christmas. :^)
Well, that's the problem then. Here's mine (for Pyrex): def swig_sources (self, sources): if not self.extensions: return What version of Pyrex are you using? --Paul

Stefan Behnel wrote:
Ahh, my mistake. The egg was around from previously (Dec 27). "python .setup.py clean" didn't remove the earlier egg.
Still, if it didn't compile, I'd wonder why there should be an .egg file in dist.
Have you tried "python setup.py bdist_egg" ? Then, this should work:
Same error (on self.swig_sources) However, I'm ok for now, as I doubt the source has changed dramatically since Christmas. :^)
Well, that's the problem then. Here's mine (for Pyrex): def swig_sources (self, sources): if not self.extensions: return What version of Pyrex are you using? --Paul
participants (2)
-
Paul Everitt
-
Stefan Behnel