This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jepler
Recipients
Date 2004-08-07.14:27:30
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=2772

I've wanted another related feature:  I wrote an image
viewer program using pygame.  It works nicely on windows and
unix.

In the source tree, I named the script with a .py extension,
but when installing on unix I want no extension, and when
installing on Windows I want a .pyw extension.

Whatever scheme is developed for naming installed scripts,
it should also allow renaming to .pyw on Windows.

My own setup.py replaces build_scripts so that the scripts=
parameter to setup is a mapping {installed_name : source
name}, and provides two functions WINDOWED(s) and
TERMINAL(s) to return s plus the appropriate extension, if any.

Like Fred, I don't think this is an ultimate solution.

My setup.py can be viewed:
http://unpy.net/cgi-bin/viewcvs.cgi/xvp/setup.py
History
Date User Action Args
2007-08-23 15:38:13adminlinkissue976869 messages
2007-08-23 15:38:13admincreate