[Distutils] [issue67] You can't tell easy_install not to talk to the network
Jeff Rush
jeff at taupro.com
Fri Apr 3 22:17:25 CEST 2009
Glyph Lefkowitz wrote:
> New submission from Glyph Lefkowitz <glyph at twistedmatrix.com>:
>
> If I want to use easy_install for nice dependency resolution, there's no way
> (that I can figure out, at least) to tell it "never talk to the network, use
> only this local directory where you can find dependencies".
>
> ----------
> messages: 260
> nosy: glyph
> priority: feature
> status: unread
> title: You can't tell easy_install not to talk to the network
Sure you can. To tell it to pull ONLY from a local directory, use:
easy_install -H None -f /tmp/cachedir SQLObject
and to *generate* that directory when you -are- online, use:
easy_install -zmaxd /tmp/cachedir SQLObject
It's the '--allow-hosts=None' or '-H None' that does the magic.
BTW my slides and handouts from the tutorial I ran at PyCon about distutils,
setuptools and buildout are linked to at the bottom of the page:
http://us.pycon.org/2009/tutorials/schedule/1PM3/
It's broken into four sub-topics of virtualenv, distutils, setuptools and
buildout and the handout text includes many tips and techniques that are not
often well known like the one you asked about.
-Jeff
More information about the Distutils-SIG
mailing list