Message48088
Distutils have a script functionality that copy the
corresponding file
into a common script folder (that could be on the
path) and sligthly
modify the first line of the script to reflect the path
of the python
executable.
It is very nice because it make new commands
directly available but
for the window platform I think it could be
improved.
First the extention of the script could be .bat such
that they will be
accessible as commands as soon as the script
folder is in the path.
Second the first line adaptation could be slightly
different and take
advantage of the -x option of the python executable
#!python foo bar
could become:
@C:\Python24\python.exe -x "%~f0" foo bar & exit /
b
instead of:
#!C:\Python24\python.exe -x "%~f0" foo bar & exit /
b
In attachement I add my modified version of the
build_scripts.py file (Revision 1.25, the head of the
30th of March)
|
|
Date |
User |
Action |
Args |
2007-08-23 15:42:29 | admin | link | issue1173134 messages |
2007-08-23 15:42:29 | admin | create | |
|