Message140815
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. |
|
Date |
User |
Action |
Args |
2011-07-21 12:33:42 | higery | set | recipients:
+ higery, mhammond, fdrake, vinay.sajip, ceder, tim.golden, tarek, eric.araujo, alexis |
2011-07-21 12:33:42 | higery | set | messageid: <1311251622.79.0.291330813025.issue12394@psf.upfronthosting.co.za> |
2011-07-21 12:33:42 | higery | link | issue12394 messages |
2011-07-21 12:33:42 | higery | create | |
|