summaryrefslogtreecommitdiff
path: root/EasyInstall.txt
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-10-19 03:00:35 +0000
committerPJ Eby <distutils-sig@python.org>2005-10-19 03:00:35 +0000
commit272fed819ba188ac5d6c0ceb9de6d7a8cb543a18 (patch)
tree53446d778b3cd6ac08470faa5ff28c168d406b40 /EasyInstall.txt
parent741f1742fee6d55a6a278ff44215aaf0959381c5 (diff)
downloadpython-setuptools-git-272fed819ba188ac5d6c0ceb9de6d7a8cb543a18.tar.gz
Added "--allow-hosts" option to restrict downloading and spidering to
a specified list of server glob patterns. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041266
Diffstat (limited to 'EasyInstall.txt')
-rwxr-xr-xEasyInstall.txt22
1 files changed, 21 insertions, 1 deletions
diff --git a/EasyInstall.txt b/EasyInstall.txt
index 3efc80f1..9709adfe 100755
--- a/EasyInstall.txt
+++ b/EasyInstall.txt
@@ -692,6 +692,26 @@ Command-Line Options
tools that wrap eggs in a platform-specific packaging system. (We don't
recommend that you use it for anything else.)
+``--allow-hosts=PATTERNS, -H PATTERNS`` (New in 0.6a6)
+ Restrict downloading and spidering to hosts matching the specified glob
+ patterns. E.g. ``-H *.python.org`` restricts web access so that only
+ packages listed and downloadable from machines in the ``python.org``
+ domain. The glob patterns must match the *entire* user/host/port section of
+ the target URL(s). For example, ``*.python.org`` will NOT accept a URL
+ like ``http://python.org/foo`` or ``http://www.python.org:8080/``.
+ Multiple patterns can be specified by separting them with commas. The
+ default pattern is ``*``, which matches anything.
+
+ In general, this option is mainly useful for blocking EasyInstall's web
+ access altogether (e.g. ``-Hlocalhost``), or to restrict it to an intranet
+ or other trusted site. EasyInstall will do the best it can to satisfy
+ dependencies given your host restrictions, but of course can fail if it
+ can't find suitable packages. EasyInstall displays all blocked URLs, so
+ that you can adjust your ``--allow-hosts`` setting if it is more strict
+ than you intended. Some sites may wish to define a restrictive default
+ setting for this option in their `configuration files`_, and then manually
+ override the setting on the command line as needed.
+
Non-Root Installation
---------------------
@@ -850,7 +870,7 @@ Known Issues
that makes the PYTHONPATH-based approach work with .pth files, so that you
can get the full EasyInstall feature set on such installations.
- * Added ``--no-deps`` option.
+ * Added ``--no-deps`` and ``--allow-hosts`` options.
* Improved Windows ``.exe`` script wrappers so that the script can have the
same name as a module without confusing Python.