Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.rebootstrap
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos.rebootstrap
Commits
71633373
Commit
71633373
authored
Jun 24, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify and fix eggs support.
parent
580c41b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
slapos/rebootstrap/__init__.py
slapos/rebootstrap/__init__.py
+8
-8
No files found.
slapos/rebootstrap/__init__.py
View file @
71633373
...
...
@@ -59,10 +59,10 @@ class Rebootstrap:
# support additional eggs
self
.
eggs
=
[]
wanted_
eggs
=
rebootstrap_section
.
get
(
'eggs'
)
if
wanted_
eggs
:
wanted_eggs
=
[
q
.
strip
()
for
q
in
wanted_
eggs
.
split
()
if
q
.
strip
()]
self
.
eggs
=
wanted_
eggs
eggs
=
rebootstrap_section
.
get
(
'eggs'
)
if
eggs
:
eggs
=
[
q
.
strip
()
for
q
in
eggs
.
split
()
if
q
.
strip
()]
self
.
eggs
=
eggs
def
__call__
(
self
):
self
.
install_section
()
...
...
@@ -84,18 +84,18 @@ Buildout will be restarted automatically to have this change applied.
running_python
=
self
.
running_python
)
self
.
logger
.
info
(
message
)
options
=
self
.
buildout
[
'buildout'
]
self
.
wanted_eggs
=
[
'zc.buildout'
]
self
.
eggs
.
append
(
'zc.buildout'
)
# XXX: A lot of below code is took from zc.buildout.buildout.py:_maybe_upgrade
# which is code duplication issue, but even if newer buildout with needed
# hooks will be released, this extension shall work on older ones
if
zc
.
buildout
.
easy_install
.
is_distribute
:
self
.
wanted_
eggs
.
append
(
'distribute'
)
self
.
eggs
.
append
(
'distribute'
)
else
:
self
.
wanted_
eggs
.
append
(
'setuptools'
)
self
.
eggs
.
append
(
'setuptools'
)
ws
=
zc
.
buildout
.
easy_install
.
install
(
[
(
spec
+
' '
+
options
.
get
(
spec
+
'-version'
,
''
)).
strip
()
for
spec
in
self
.
wanted_
eggs
for
spec
in
self
.
eggs
],
options
[
'eggs-directory'
],
links
=
options
.
get
(
'find-links'
,
''
).
split
(),
...
...
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