From: Greg L. <gl...@ph...> - 2006-03-06 22:50:38
|
Jimmy Retzlaff wrote: >I don't use PyXML so I'm not too familiar with it. I installed it and >I'm able to access basic xml.sax.saxlib APIs when using the following >setup.py: >from distutils.core import setup >import py2exe >setup( > console=3D['test.py'], > options=3D{ > 'py2exe': { > 'packages': ['_xmlplus'], > } > }, > ) >Was the specification of _xmlplus in the packages unnecessary before >0.6.4? >Jimmy Here's a simple failure. Consider importtest.py consisting solely of: import xml.xpath with this setup.py: # setup.py # python setup.py py2exe (or python setup24.py py2exe) # you may need to 'rm -rf dist build' first. from distutils.core import setup import glob import py2exe import sys # The Target class is demonstrated in py2exe/samples/advanced/setup.py class Target: def __init__(self, name, **kw): self.__dict__.update(kw) self.__dict__["script"] =3D "importtest.py" # for the versioninfo resources self.company_name =3D "Pharsight Corporation" self.copyright =3D "2002, 2003, 2004, 2005" self.name =3D name # The console version shows stdout messages in a DOS box. setup(name=3D"importtest", windows=3D[Target("Import Test", description=3D"Import Test") ], console=3D[Target("Import Test (console)", dest_base=3D"console", description=3D"Console version of Import Test")], version =3D "1.4.0.000", options=3D{"py2exe":{"packages":[]}} \ ) Python can resolve "import xml.xpath" interactively, but py2exe fails to = resolve. |