Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
dadc1632
Commit
dadc1632
authored
Jan 25, 2013
by
Reinout van Rees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raising an error if buildout-versions or buildout.dumppickedversions is used
parent
f9c631a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+8
-0
src/zc/buildout/repeatable.txt
src/zc/buildout/repeatable.txt
+21
-0
No files found.
src/zc/buildout/buildout.py
View file @
dadc1632
...
...
@@ -960,6 +960,14 @@ class Buildout(DictMixin):
def
_load_extensions
(
self
):
__doing__
=
'Loading extensions.'
specs
=
self
[
'buildout'
].
get
(
'extensions'
,
''
).
split
()
for
superceded_extension
in
[
'buildout-versions'
,
'buildout.dumppickedversions'
]:
if
superceded_extension
in
specs
:
msg
=
(
"The extension %s is now included in buildout itself.
\
n
"
"Remove the extension from your configuration and "
"look at the `show-picked-versions`
\
n
"
"option in buildout's documentation."
)
raise
zc
.
buildout
.
UserError
(
msg
%
superceded_extension
)
if
specs
:
path
=
[
self
[
'buildout'
][
'develop-eggs-directory'
]]
if
self
.
offline
:
...
...
src/zc/buildout/repeatable.txt
View file @
dadc1632
...
...
@@ -370,6 +370,27 @@ And re-running buildout doesn't report any picked versions anymore:
Updating foo.
recipe v2
Because buildout now includes buildout-versions' (and the older
buildout.dumppickedversions') functionality, it warns if these extensions are
configured.
>>> write(sample_buildout, 'buildout.cfg',
... """
... [buildout]
... parts = foo
... extensions = buildout-versions
...
... [foo]
... recipe = spam
... """)
>>> print_(system(buildout), end='') # doctest: +ELLIPSIS
While:
Installing.
Loading extensions.
Error: The extension buildout-versions is now included in buildout itself.
Remove the extension from your configuration and look at the `show-picked-versions`
option in buildout's documentation.
Controlling the python version
-------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment