[Q] How to specify options for 'setup.py install' by environment variable?

Makoto Kuwata kwa at kuwata-lab.com
Sat Jun 9 21:55:13 EDT 2012


Hi,

"setup.py install" command supports options such as --prefix,
--install-scripts, and so on.
For example:

  $ python setup.py install --prefix=$PWD/local --install-scripts=$PWD/bin

Question: is it possible to specify these options by environment variable?
I want to specify --prefix or --install-scripts options, but it is
too troublesome for me to specify them in command line every time.

--
regards,
makoto kuwata



More information about the Python-list mailing list