I am trying to build a cherrypy web server as a service using py2exe
0.6.6 and python 2.5.1. I did this successfully using cp2.2 but now am
struggling with 3.0. The problem is with py2exe saying a few
dependencies are missing and I cannot seem to include them. I guess it's
my lack of understanding of the (subtle) differences between the options
"includes" and "packages". Hopefully someone can enlighten me :)
So my real problem is including email, elementtree and OpenSSL. For
elementtree I've tried xmlcore (it complained there was no such module
and no such package), xml.etree (similar error).
But I cannot even get rid of the email warning. Is email a module or a
package? IMHO it's a module but adding it to "includes" doesn't remove
the warning. Adding 'email.Header' doesn't help either. And likewise as
a package. Also including "import email" in either the setup.py or
service.py script also gives no joy.
The compile warning is:
The following modules appear to be missing
['OpenSSL', 'elementtree.ElementTree', 'email.Generator',
'email.Header', 'email.Iterators', 'email.Utils', 'routes']
And one last thing, what is the difference between including "packages"
and using "packages_dir" as parameters to setup, rather than to py2exe
as options? Should these only used for you own code's modules rather
than the python code?