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 higery
Recipients alexis, ceder, eric.araujo, fdrake, higery, mhammond, tarek, tim.golden, vinay.sajip
Date 2011-07-21.12:33:42
SpamBayes Score 2.3682345e-09
Marked as misclassified No
Message-id <1311251622.79.0.291330813025.issue12394@psf.upfronthosting.co.za>
In-reply-to
Content
I hope people can help me test this patch especially on non-Windows platforms.

The main implementation resides in build_scripts.py.

Usage: Just add a 'wrapper-scripts-entries' variable in setup.cfg, which takes a list type as its value. For instance,

wrapper-scripts-entries = ['hello=demo.foo.bar:main']

There is only one entry named 'hello' in current setup.cfg, the 'demo.foo.bar' is the dotted module path, and the 'main' is the main function name which will be called to execute.



Current patch can generte executable script with no extension on POSIX, and .exe file on Windows but have not yet added gui support. 

I also have another problem here looking for help:

In the 'test_command_build_scripts.py', how to test the generated .exe wrapper to see if it can run and generate correct output or not? The only way I can remember is to use os.system(), but if we use os.system() to execute the .exe file, then it will not get the what we want, because it will run in another thread, thus can not get the right sys.path which I have set in my test function.
History
Date User Action Args
2011-07-21 12:33:42higerysetrecipients: + higery, mhammond, fdrake, vinay.sajip, ceder, tim.golden, tarek, eric.araujo, alexis
2011-07-21 12:33:42higerysetmessageid: <1311251622.79.0.291330813025.issue12394@psf.upfronthosting.co.za>
2011-07-21 12:33:42higerylinkissue12394 messages
2011-07-21 12:33:42higerycreate