You may specify default options for EasyInstall using the standard
distutils configuration files, under the command heading easy_install.
EasyInstall will look first for a setup.cfg file in the current directory,
then a ~/.pydistutils.cfg or $HOME\\pydistutils.cfg (on Unix-like OSes
and Windows, respectively), and finally a distutils.cfg file in the
distutils package directory. Here's a simple example::
[easy_install]
# set the default location to install packages
install_dir = /home/me/lib/python
# Notice that indentation can be used to continue an option
# value; this is especially useful for the "--find-links"
# option, which tells easy_install to use download links on
# these pages before consulting PyPI:
#
find_links = http://sqlobject.org/
http://peak.telecommunity.com/dist/
In addition to accepting configuration for its own options under
[easy_install], EasyInstall also respects defaults specified for other
distutils commands. For example, if you don't set an install_dir for
[easy_install], but have set an install_lib for the [install]
command, this will become EasyInstall's default installation directory. Thus,
if you are already using distutils configuration files to set default install
locations, build options, etc., EasyInstall will respect your existing settings
until and unless you override them explicitly in an [easy_install] section.
For more information, see also the current Python documentation on the use and location of distutils configuration files <http://docs.python.org/inst/config-syntax.html>_.
https://svn.python.org/projects/sandbox/branches/setuptools-0.6/EasyInstall.txt
You may specify default options for EasyInstall using the standard distutils configuration files, under the command heading
easy_install
. EasyInstall will look first for asetup.cfg
file in the current directory, then a~/.pydistutils.cfg
or$HOME\\pydistutils.cfg
(on Unix-like OSes and Windows, respectively), and finally adistutils.cfg
file in thedistutils
package directory. Here's a simple example::In addition to accepting configuration for its own options under
[easy_install]
, EasyInstall also respects defaults specified for other distutils commands. For example, if you don't set aninstall_dir
for[easy_install]
, but have set aninstall_lib
for the[install]
command, this will become EasyInstall's default installation directory. Thus, if you are already using distutils configuration files to set default install locations, build options, etc., EasyInstall will respect your existing settings until and unless you override them explicitly in an[easy_install]
section.For more information, see also the current Python documentation on the
use and location of distutils configuration files <http://docs.python.org/inst/config-syntax.html>
_.