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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.buildout
Commits
7b8fd04c
Commit
7b8fd04c
authored
Mar 13, 2024
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[opti] Compute default zc.buildout version lazily
parent
4761c7d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+4
-3
No files found.
src/zc/buildout/buildout.py
View file @
7b8fd04c
...
@@ -474,16 +474,17 @@ class Buildout(DictMixin):
...
@@ -474,16 +474,17 @@ class Buildout(DictMixin):
else
:
else
:
versions
=
{}
versions
=
{}
versions
.
update
(
versions
.
update
(
dict
((
k
,
SectionKey
(
v
,
'DEFAULT_VALUE'
))
dict
((
k
,
SectionKey
(
v
(),
'DEFAULT_VALUE'
))
# Use lambdas to compute values only if needed
for
(
k
,
v
)
in
(
for
(
k
,
v
)
in
(
# Prevent downgrading due to prefer-final:
# Prevent downgrading due to prefer-final:
(
'zc.buildout'
,
(
'zc.buildout'
,
'>='
+
pkg_resources
.
working_set
.
find
(
lambda
:
'>='
+
pkg_resources
.
working_set
.
find
(
pkg_resources
.
Requirement
.
parse
(
'zc.buildout'
)
pkg_resources
.
Requirement
.
parse
(
'zc.buildout'
)
# Skip local part because ">=x.y.z+abc" is invalid
# Skip local part because ">=x.y.z+abc" is invalid
).
parsed_version
.
public
),
).
parsed_version
.
public
),
# Use 2, even though not final
# Use 2, even though not final
(
'zc.recipe.egg'
,
'>=2.0.6'
),
(
'zc.recipe.egg'
,
lambda
:
'>=2.0.6'
),
)
)
if
k
not
in
versions
if
k
not
in
versions
))
))
...
...
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