[Distutils] [issue67] You can't tell easy_install not to talk to the network
P.J. Eby
pje at telecommunity.com
Fri Apr 3 23:32:42 CEST 2009
By the way, these options and the procedures are also listed in the
official documentation at:
<http://peak.telecommunity.com/DevCenter/EasyInstall#installing-on-un-networked-machines>http://peak.telecommunity.com/DevCenter/EasyInstall#installing-on-un-networked-machines
and:
<http://peak.telecommunity.com/DevCenter/EasyInstall#restricting-downloads-with-allow-hosts>http://peak.telecommunity.com/DevCenter/EasyInstall#restricting-downloads-with-allow-hosts
At 03:17 PM 4/3/2009 -0500, Jeff Rush wrote:
>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
>_______________________________________________
>Distutils-SIG maillist - Distutils-SIG at python.org
>http://mail.python.org/mailman/listinfo/distutils-sig
More information about the Distutils-SIG
mailing list