[Distutils] buildout 2.0.0b1 released
Maurits van Rees
m.van.rees at zestsoftware.nl
Mon Jan 21 17:11:30 CET 2013
Op 21-01-13 13:31, Jim Fulton schreef:
> Changes:
>
> http://pypi.python.org/pypi/zc.buildout/2.0.0b1#b1-2013-01-21
>
> If problems aren't discovered first, I plan to make the final release
> next weekend.
>
> To install the new release, download:
>
> http://downloads.buildout.org/2/bootstrap.py
>
> if you haven't already. (It hasn't changed since 2.0.0a6.)
>
> Then bootstrap projects with:
>
> python bootstrap.py -t
>
> Jim
>
Works fine in my standard customer buildout.
There are a few problems with extensions I use, but they probably need
to be fixed in those extensions.
If I use the mr.developer extension, "bin/buildout
buildout:parts=ipzope" works, but not when you spell it without
'buildout:'. mr.developer seems to work fine with zc.buildout 2.0.0b1,
just not for this feature. This is the traceback:
$ bin/buildout parts=ipzope
While:
Installing.
Loading extensions.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File
"/Users/mauritsvanrees/shared-eggs/zc.buildout-2.0.0b1-py2.7.egg/zc/buildout/buildout.py",
line 1752, in main
getattr(buildout, command)(args)
File
"/Users/mauritsvanrees/shared-eggs/zc.buildout-2.0.0b1-py2.7.egg/zc/buildout/buildout.py",
line 439, in install
self._load_extensions()
File
"/Users/mauritsvanrees/shared-eggs/zc.buildout-2.0.0b1-py2.7.egg/zc/buildout/buildout.py",
line 970, in _load_extensions
ep.load()(self)
File
"/Users/mauritsvanrees/shared-eggs/mr.developer-1.21-py2.7.egg/mr/developer/extension.py",
line 246, in extension
return Extension(buildout)()
File
"/Users/mauritsvanrees/shared-eggs/mr.developer-1.21-py2.7.egg/mr/developer/extension.py",
line 242, in __call__
config.save()
File
"/Users/mauritsvanrees/shared-eggs/mr.developer-1.21-py2.7.egg/mr/developer/common.py",
line 402, in save
options, settings, args = parse_buildout_args(self.buildout_args[1:])
File
"/Users/mauritsvanrees/shared-eggs/mr.developer-1.21-py2.7.egg/mr/developer/common.py",
line 329, in parse_buildout_args
raise ValueError('Invalid option:', option)
ValueError: ('Invalid option:', 'parts')
Simple buildout for this error:
[buildout]
extensions =
mr.developer
parts = hello
[hello]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds = echo Hello
In the Plone core-dev buildout, I get an error which at first seemed to
be a problem in zc.buildout itself. It goes away when I remove the
buildout.dumppickedversions extension though. This is the traceback:
While:
Installing.
Checking for upgrades.
Traceback (most recent call last):
File
"/Users/mauritsvanrees/shared-eggs/zc.buildout-2.0.0b1-py2.6.egg/zc/buildout/buildout.py",
line 1752, in main
getattr(buildout, command)(args)
File
"/Users/mauritsvanrees/shared-eggs/zc.buildout-2.0.0b1-py2.6.egg/zc/buildout/buildout.py",
line 447, in install
self._maybe_upgrade()
File
"/Users/mauritsvanrees/shared-eggs/zc.buildout-2.0.0b1-py2.6.egg/zc/buildout/buildout.py",
line 879, in _maybe_upgrade
allow_hosts = self._allow_hosts
File
"/Users/mauritsvanrees/shared-eggs/zc.buildout-2.0.0b1-py2.6.egg/zc/buildout/easy_install.py",
line 738, in install
return installer.install(specs, working_set)
File
"/Users/mauritsvanrees/shared-eggs/zc.buildout-2.0.0b1-py2.6.egg/zc/buildout/easy_install.py",
line 574, in install
for dist in self._get_dist(requirement, ws):
TypeError: get_dist() takes exactly 4 arguments (3 given)
When started in debug mode, I get this info:
Starting pdb:
>
/Users/mauritsvanrees/shared-eggs/zc.buildout-2.0.0b1-py2.6.egg/zc/buildout/easy_install.py(574)install()
-> for dist in self._get_dist(requirement, ws):
(Pdb) a
self = <zc.buildout.easy_install.Installer instance at 0x1039871b8>
specs = ('zc.buildout', 'distribute')
working_set = None
(Pdb) requirement
Requirement.parse('zc.buildout==2.0.0b1')
(Pdb) ws
<pkg_resources.WorkingSet object at 0x100436d10>
(Pdb) pp ws.entries
[]
(Same with Python 2.7.)
Sample buildout for this error:
[buildout]
extensions =
buildout.dumppickedversions
parts = hello
[hello]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds = echo Hello
--
Maurits van Rees: http://maurits.vanrees.org/
Zest Software: http://zestsoftware.nl
More information about the Distutils-SIG
mailing list