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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
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:
...
@@ -59,10 +59,10 @@ class Rebootstrap:
# support additional eggs
# support additional eggs
self
.
eggs
=
[]
self
.
eggs
=
[]
wanted_
eggs
=
rebootstrap_section
.
get
(
'eggs'
)
eggs
=
rebootstrap_section
.
get
(
'eggs'
)
if
wanted_
eggs
:
if
eggs
:
wanted_eggs
=
[
q
.
strip
()
for
q
in
wanted_
eggs
.
split
()
if
q
.
strip
()]
eggs
=
[
q
.
strip
()
for
q
in
eggs
.
split
()
if
q
.
strip
()]
self
.
eggs
=
wanted_
eggs
self
.
eggs
=
eggs
def
__call__
(
self
):
def
__call__
(
self
):
self
.
install_section
()
self
.
install_section
()
...
@@ -84,18 +84,18 @@ Buildout will be restarted automatically to have this change applied.
...
@@ -84,18 +84,18 @@ Buildout will be restarted automatically to have this change applied.
running_python
=
self
.
running_python
)
running_python
=
self
.
running_python
)
self
.
logger
.
info
(
message
)
self
.
logger
.
info
(
message
)
options
=
self
.
buildout
[
'buildout'
]
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
# 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
# which is code duplication issue, but even if newer buildout with needed
# hooks will be released, this extension shall work on older ones
# hooks will be released, this extension shall work on older ones
if
zc
.
buildout
.
easy_install
.
is_distribute
:
if
zc
.
buildout
.
easy_install
.
is_distribute
:
self
.
wanted_
eggs
.
append
(
'distribute'
)
self
.
eggs
.
append
(
'distribute'
)
else
:
else
:
self
.
wanted_
eggs
.
append
(
'setuptools'
)
self
.
eggs
.
append
(
'setuptools'
)
ws
=
zc
.
buildout
.
easy_install
.
install
(
ws
=
zc
.
buildout
.
easy_install
.
install
(
[
[
(
spec
+
' '
+
options
.
get
(
spec
+
'-version'
,
''
)).
strip
()
(
spec
+
' '
+
options
.
get
(
spec
+
'-version'
,
''
)).
strip
()
for
spec
in
self
.
wanted_
eggs
for
spec
in
self
.
eggs
],
],
options
[
'eggs-directory'
],
options
[
'eggs-directory'
],
links
=
options
.
get
(
'find-links'
,
''
).
split
(),
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