[Distutils] setup.py install: overriding sys.executable for scripts?
P.J. Eby
pje at telecommunity.com
Mon Jul 27 17:35:42 CEST 2009
At 12:09 PM 7/27/2009 +0200, Iwan Vosloo wrote:
>Hi there,
>
>We are running:
>
>python setup.py install --single-version-externally-managed
>
>in order to package an egg in a .deb.
>
>However, we run this inside a virtualenv environment, which means that
>all scripts generated by setuptools start with:
>
>#!/path/to/python/in/virtualenv
>
>I see that sys.executable is used for generating this line. Is there
>any way to override it, similarly to how you can override the
>installation directory with --prefix?
Not at the moment. Feel free to add a feature request to the
tracker, perhaps with a patch. This also seems like something the
distutils could potentially use as well.
More information about the Distutils-SIG
mailing list