Importing XML modules in py2exe or Installer?
Gordon McMillan
gmcm at hypernet.com
Sat Jul 14 10:17:13 EDT 2001
[posted and mailed]
Gustaf Liljegren wrote:
> Have completed a fairly large project where I, among other modules, use
> the Python XML package from the XML SIG. Now I want to make a DOS
> binary to distribute it as a standalone application for Windows users.
>
> Neither py2exe nor Installer is able to find the XML modules by
> themselves, and I haven't been able to figure out how to include them.
[snip]
>
> The XML modules reside at e:\python\_xmlplus in this computer. I have
> tried the respective include options, but don't know if I do it right:
>
> python e:\pyinst\builder.py myscript.cfg --includes e:\python\_xmlplus
Doesn't help to use py2exe args with Installer!
Edit myscript.cfg and put
packages=_xmlplus
in the PYZ section.
I don't know if that's enough - I've never worked with the XML package.
- Gordon
More information about the Python-list
mailing list