Re: [Distutils] easy_install command arguments not propagated when installing source distributions
At 12:23 PM 9/23/2010 -0700, Jason R. Coombs wrote:
I understand the challenge here - setuptools is launching setup.py from the source distribution for jaraco.compat, and setup.py doesn't accept parameters for 'allow_hosts' and 'find_links'.
Hm. This is actually a bit of a hole with respect to --allow-hosts. I'll have to see if there's a way to pass that information through (probably not as a setup.cfg file, though).
Is there any way that we can use source distributions in this environment (without customizing each source distribution for the environment)? If not, perhaps an improvement could be added to setuptools to populate a setup.cfg file when installing source distributions to include the easy_install flags supplied to the requiring install.
In the meantime, one quick fix you could implement is to add a distutils.cfg to the Lib/distutils/ directory of your Python installation(s). If you want to do this in a (semi-)automated way, you can run this in any project source directory:
python setup.py saveopts -g easy_install [options to save]
This will save whatever options you give to the global config file for you.