higery <shoulderhig...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12394>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to