ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> py2exe-users
py2exe-users
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved