With buildout 1 and its bootstrap script, its is possible to bootstrap
a carefully crafted environment without a network connection:
python bootstrap.py --version 1.7.0  --distribute
--setup-source=distribute_setup.py  --download-base=./<some directory
defined as download-cache>/dist/
assuming you have a download-cache without all your packages including
buildout itself and all the dependencies, newest=false,
installed-from-cache=true and properly pinned versions.
hard to setup, but this works.

The new bootstrap script for buildout 2.0 always attempt to download
distribute_setup.py instead if distribute is not available:
See: 
https://github.com/buildout/buildout/blob/ee709cfb00229fbd8fc8554db8ffffdf06a46808/bootstrap/bootstrap.py#L81
exec(urlopen('http://python-distribute.org/distribute_setup.py').read()

What is the way around this?
FWIW, the buildout 1 bootstrap script seems to work OK when pointed to
a buildout 2 version and produced the expected behavior

Or would a patch be welcomed?

-- 
Philippe Ombredanne

+1 650 799 0949 | [email protected]
DejaCode Enterprise at http://www.dejacode.com
nexB Inc. at http://www.nexb.com
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to