[Py2exe-users] How to avoid using setup parameters that are py2exe-specific
by David Fraser other posts by this author
Jun 29 2004 3:00PM messages near this date
Re: [Py2exe-users] PyQt problem
|
[Py2exe-users] Python service problems
I often use a setup script that is used for normal distributions as well
as py2exe distributions
I have added the ideas below to the wiki page, others may find it useful
or have better ideas :-)
http://starship.python.net/crew/theller/moin.cgi/PassingOptionsToPy2Exe
2 Avoid using setup parameters that are py2exe-specific
Instead of passing options like console, windows to setup(), you can
subclass Distribution and initialize them as follows:
from distutils.core import Distribution
class MyDistribution(Distribution):
def __init__(self, attrs):
self.com_server = []
self.services = []
self.windows = []
self.console = ['myapp']
self.zipfile = 'mylibrary.zip'
Distribution.__init__(self, attrs)
setup(distclass=Distribution)
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Py2exe-users mailing list
Py2exe-users@[...].net
https://lists.sourceforge.net/lists/listinfo/py2exe-users
|