Buildout 2.2b1 downgrade itself to 2.1

13 views
Skip to first unread message

Sebastien Douche

unread,
Jun 18, 2013, 5:20:21 AM6/18/13
to buildout-d...@googlegroups.com
Hi all,
I'm currently testing the new Buildout version but stubbornly wants to
use the 2.1. Missed something?

Here the steps:

1. Create a new virtualenv and install manually Setuptools 0.7.2

$ ls ~/vpython/setuptools072/lib/python2.7/site-packages/
easy-install.pth pip-1.3.1-py2.7.egg/ setuptools-0.7.2-py2.7.egg
setuptools.pth

2. Clean the buildout

$ git clean -dfx

3. Get the new bootstrap file

$ wget -N http://downloads.buildout.org/2.2.0b1/bootstrap.py

4. Bootstrap

~/vpython/setuptools072/bin/python bootstrap.py -t

cat bin/buildout
#!/home/sdouche/vpython/setuptools072/bin/python
...
sys.path[0:0] = [
join(base, 'eggs/setuptools-0.7.2-py2.7.egg'),
join(base, 'eggs/zc.buildout-2.2.0b1-py2.7.egg'),

5. Launch Buildout

$ ./bin/buildout
Getting distribution for 'zc.buildout==2.1'.
Got zc.buildout 2.1.0.
Upgraded:
zc.buildout version 2.1.0;
restarting.
Generated script '/home/sdouche/src/sact/main/sact.nova/bin/buildout'.
zc.buildout 2 needs distribute, not setuptools. Are you using an
outdated bootstrap.py? Make sure you have the latest version
downloaded from http://downloads.buildout.org/2/bootstrap.py

$ cat bin/buildout
#!/home/sdouche/vpython/setuptools072/bin/python
...
sys.path[0:0] = [
join(base, 'eggs/zc.buildout-2.1.0-py2.7.egg'),
join(base, 'eggs/setuptools-0.7.2-py2.7.egg'),


--
Sebastien Douche <sdo...@gmail.com>
Twitter: @sdouche / G+: +sdouche

Jim Fulton

unread,
Jun 18, 2013, 9:54:13 AM6/18/13
to buildout-d...@googlegroups.com
I can't reproduce this:

bash-3.2$ cd t
bash-3.2$ mkdir 0618
bash-3.2$ cd 0618
bash-3.2$ wget http://downloads.buildout.org/2.2.0b1/bootstrap.py
--2013-06-18 09:43:15-- http://downloads.buildout.org/2.2.0b1/bootstrap.py
Resolving downloads.buildout.org... 74.220.203.54
Connecting to downloads.buildout.org|74.220.203.54|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5686 (5.6K) [text/plain]
Saving to: ‘bootstrap.py’

100%[======================================>] 5,686 --.-K/s in 0s

2013-06-18 09:43:15 (11.2 MB/s) - ‘bootstrap.py’ saved [5686/5686]
bash-3.2$ python2.7 bootstrap.py -t init
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-0.7.2.tar.gz
Extracting in /var/folders/tj/kr4hgd111cj8vryl4n956tqm0000gn/T/tmpR2qDty
Now working in /var/folders/tj/kr4hgd111cj8vryl4n956tqm0000gn/T/tmpR2qDty/setuptools-0.7.2
Building a Setuptools egg in
/var/folders/tj/kr4hgd111cj8vryl4n956tqm0000gn/T/tmpXgkMQC
/var/folders/tj/kr4hgd111cj8vryl4n956tqm0000gn/T/tmpXgkMQC/setuptools-0.7.2-py2.7.egg
Creating '/Users/jim/t/0618/buildout.cfg'.
Creating directory '/Users/jim/t/0618/bin'.
Creating directory '/Users/jim/t/0618/parts'.
Creating directory '/Users/jim/t/0618/develop-eggs'.
Generated script '/Users/jim/t/0618/bin/buildout'.
bash-3.2$ bin/buildout
Unused options for buildout: 'unzip'.
bash-3.2$ bin/buildout
Unused options for buildout: 'unzip'.
bash-3.2$ bin/buildout
Unused options for buildout: 'unzip'.
bash-3.2$ head bin/buildout
#!/Users/jim/bin/python2.7

import sys
sys.path[0:0] = [
'/Users/jim/.buildout/eggs/setuptools-0.7.2-py2.7.egg',
'/Users/jim/.buildout/eggs/zc.buildout-2.2.0b1-py2.7.egg',
]

import zc.buildout.buildout

bash-3.2$ head bin/buildout -U
==> bin/buildout <==
#!/Users/jim/bin/python2.7

import sys
sys.path[0:0] = [
'/Users/jim/.buildout/eggs/setuptools-0.7.2-py2.7.egg',
'/Users/jim/.buildout/eggs/zc.buildout-2.2.0b1-py2.7.egg',
]

import zc.buildout.buildout

bash-3.2$ bin/buildout -U
Creating directory '/Users/jim/t/0618/eggs'.
bash-3.2$ bin/buildout -U
bash-3.2$ head bin/buildout -U
==> bin/buildout <==
#!/Users/jim/bin/python2.7

import sys
sys.path[0:0] = [
'/Users/jim/.buildout/eggs/setuptools-0.7.2-py2.7.egg',
'/Users/jim/.buildout/eggs/zc.buildout-2.2.0b1-py2.7.egg',
]

import zc.buildout.buildout

bash-3.2$ virtualenv-2.7 e
New python executable in e/bin/python2.7
Also creating executable in e/bin/python
Installing setuptools............done.
Installing pip...............done.
bash-3.2$ . e/bin/activate
(e)bash-3.2$ mkdir b
(e)bash-3.2$ cd b
(e)bash-3.2$ pip install setuptools==0.7.2
Downloading/unpacking setuptools==0.7.2
Downloading setuptools-0.7.2.tar.gz (633kB): 633kB downloaded
Running setup.py egg_info for package setuptools

Installing collected packages: setuptools
Found existing installation: setuptools 0.6c11
Uninstalling setuptools:
Successfully uninstalled setuptools
Running setup.py install for setuptools

Installing easy_install script to /Users/jim/t/0618/e/bin
Installing easy_install-2.7 script to /Users/jim/t/0618/e/bin
Successfully installed setuptools
Cleaning up...
(e)bash-3.2$ ls ../e/lib/python2.7/site-packages/
_markerlib pkg_resources.py
easy-install.pth pkg_resources.pyc
easy_install.py setuptools
easy_install.pyc setuptools-0.7.2-py2.7.egg-info
pip-1.3.1-py2.7.egg setuptools.pth

(e)bash-3.2$ python bootstrap.py -t init
Creating '/Users/jim/t/0618/b/buildout.cfg'.
Creating directory '/Users/jim/t/0618/b/bin'.
Creating directory '/Users/jim/t/0618/b/parts'.
Creating directory '/Users/jim/t/0618/b/develop-eggs'.
Generated script '/Users/jim/t/0618/b/bin/buildout'.
(e)bash-3.2$ head bin/buildout
#!/Users/jim/t/0618/e/bin/python

import sys
sys.path[0:0] = [
'/Users/jim/t/0618/e/lib/python2.7/site-packages',
'/Users/jim/.buildout/eggs/zc.buildout-2.2.0b1-py2.7.egg',
]

import zc.buildout.buildout

(e)bash-3.2$ bin/buildout -U
Creating directory '/Users/jim/t/0618/b/eggs'.
(e)bash-3.2$ bin/buildout -U
(e)bash-3.2$ head bin/buildout
#!/Users/jim/t/0618/e/bin/python

import sys
sys.path[0:0] = [
'/Users/jim/t/0618/e/lib/python2.7/site-packages',
'/Users/jim/.buildout/eggs/zc.buildout-2.2.0b1-py2.7.egg',
]

import zc.buildout.buildout


Jim


--
Jim Fulton
http://www.linkedin.com/in/jimfulton

Tres Seaver

unread,
Jun 18, 2013, 12:56:38 PM6/18/13
to buildout-d...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Like Jim, I can't reproduce here. Do you have 'zc.buildout' pinned in
your 'buildout.cfg'?



Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tse...@palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlHAkUYACgkQ+gerLs4ltQ6oUgCgkjnVnjLKA3SRp2FJWOKkBu2t
r4oAoK2zmUHA+Nahr4jjmkgAliX/Ic1g
=+rAt
-----END PGP SIGNATURE-----

Sebastien Douche

unread,
Jun 19, 2013, 5:29:57 AM6/19/13
to buildout-d...@googlegroups.com
On Tue, Jun 18, 2013 at 6:56 PM, Tres Seaver <tse...@palladion.com> wrote:
> Like Jim, I can't reproduce here. Do you have 'zc.buildout' pinned in
> your 'buildout.cfg'?

Rhaaaaaa, I forgot to remove some lines before the test. I need to
sleep, 4 hours per day is not enough :(.
BTW it works well with the most complex configuration (~20 parts/10
recipes). Well done Tres!

Sebastien Douche

unread,
Jun 19, 2013, 7:10:40 AM6/19/13
to buildout-d...@googlegroups.com
On Wed, Jun 19, 2013 at 11:29 AM, Sebastien Douche <sdo...@gmail.com> wrote:
> BTW it works well with the most complex configuration (~20 parts/10
> recipes). Well done Tres!

Ok with Setuptools 0.7.2, 0.7.3 and 0.8b1[1] on Python 2.7 (not tested on Py3).


[1] Change from 0.7.x: unified code base Python 2/3
Reply all
Reply to author
Forward
0 new messages