[Distutils] [issue84] setup.py install: make sys.executable overridable
Iwan Vosloo
setuptools at bugs.python.org
Tue Jul 28 09:39:09 CEST 2009
New submission from Iwan Vosloo <iwan at reahl.org>:
When running setup.py install --single-version-externally-managed in order to
package an egg in, eg, a .deb, the scripts generated from entrypoints contain a
line:
#!/path/to/python
This path is taken from sys.executable.
However, this command is often run from inside a virtualenv, in which case
sys.executable is not what you want.
It would be nice to either:
1) be able to specify a path for the python executable on the commandline,
similar to the --prefix option
or
2) strip off the contents of the $VIRTUAL_ENV variable out of sys.executable
when running with --single-version-externally-managed
----------
messages: 332
nosy: IwanVosloo
priority: wish
status: unread
title: setup.py install: make sys.executable overridable
_______________________________________________
Setuptools tracker <setuptools at bugs.python.org>
<http://bugs.python.org/setuptools/issue84>
_______________________________________________
More information about the Distutils-SIG
mailing list