[lxml-dev] _elementpath.pyc and py2exe problem
Stefan Behnel
stefan_ml at behnel.de
Fri Aug 31 09:42:57 CEST 2007
Hi,
Greg Willden wrote:
> This is probably a question for py2exe developers but I'll ask it here too.
>
> I am trying to build a win32 .exe file with py2exe and it appears that
> py2exe cannot locate _elementpath.pyc correctly.
> The file does not get copied into the library.zip file.
> I can manually (or programatically with python's zipfile module) add
> _elementpath.pyc to the zip file and then the application works fine.
>
> Has anyone experienced this? Any ideas why?
I'm not sure, but it may be because the only module that imports
_elementpath.py is lxml.etree, which is a C module. So maybe py2exe just lacks
the information that the module actually is a hard dependency of the package.
But I wonder why only the _elementpath.pyc file should be affected, not the
_elementpath.py file. Don't the .py files get included at all?
Stefan
More information about the lxml-dev
mailing list