[Distutils] setup.py install: overriding sys.executable for scripts?

Iwan Vosloo iwan at reahl.org
Mon Jul 27 12:09:30 CEST 2009


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?

Regards
- Iwan



More information about the Distutils-SIG mailing list