[Distutils] bootstrap.py doesn't work offline?

Tarek Ziade tarek.ziade at ingeniweb.com
Thu Nov 20 16:54:37 CET 2008


We have a special bootstrap.py here that will look for setuptools and other
on eggs/  in the buildout
or copy them from the system, so it works offline as well in case teh web is
unreachable.

Since bootstrap is also used to create directories inside the buildout or
simply, to link your buildout to another
interpreter, we wanted it to work with or without an internet connection.
(because you might want to run it again when you deploy
a source buildout at your customer in an existing python environment)

It is really simple to change.

2008/11/20 Marius Gedminas <marius at pov.lt>

> On Thu, Nov 20, 2008 at 12:43:26PM +0000, Chris Withers wrote:
> > Is it just me or does buildout's bootstrap.py not work offline, even if
> > the latest versions of buildout and setuptools are available in
> > buildout:egg-directory?
>
> That's right.  bootstrap.py is essentially
>
>   exec urllib.urlopen('http://someplace/somescript').read(<http://someplace/somescript%27%29.read%28>
> ).
>
> I was scared too when I first saw it.
>
> But you don't need bootstrap.py if you already have buildout installed.
>
> Marius Gedminas
> --
> Linux: The Ultimate NT Service Pack
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFJJX2ekVdEXeem148RAkj7AJ9lxaTqzZK1vycCrtBZRWBHkDJfbwCfblGW
> dG9ERZAOYprXkEVnQudz4uI=
> =98yL
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>
>


-- 
Tarek Ziadé - Directeur Technique
INGENIWEB (TM) - SAS 50000 Euros - RC B 438 725 632
Bureaux de la Colline - 1 rue Royale - Bâtiment D - 9ème étage
92210 Saint Cloud - France
Phone : 01.78.15.24.00 / Fax : 01 46 02 44 04
http://www.ingeniweb.com - une société du groupe Alter Way
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20081120/5f7e24af/attachment.htm>


More information about the Distutils-SIG mailing list