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
Yusei Tahara
slapos.buildout
Commits
a8f6fd09
Commit
a8f6fd09
authored
Jun 22, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dirty way of libnetworkached activation of buildout.
parent
da697e8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+14
-1
No files found.
src/zc/buildout/buildout.py
View file @
a8f6fd09
...
@@ -345,6 +345,12 @@ class Buildout(UserDict.DictMixin):
...
@@ -345,6 +345,12 @@ class Buildout(UserDict.DictMixin):
# Get a base working set for our distributions that corresponds to the
# Get a base working set for our distributions that corresponds to the
# stated desires in the configuration.
# stated desires in the configuration.
distributions
=
[
'setuptools'
,
'zc.buildout'
]
distributions
=
[
'setuptools'
,
'zc.buildout'
]
try
:
import
slapos.libnetworkcache
except
ImportError
:
pass
else
:
distributions
.
append
(
'slapos.libnetworkcache'
)
if
options
.
get
(
'offline'
)
==
'true'
:
if
options
.
get
(
'offline'
)
==
'true'
:
ws
=
zc
.
buildout
.
easy_install
.
working_set
(
ws
=
zc
.
buildout
.
easy_install
.
working_set
(
distributions
,
options
[
'executable'
],
distributions
,
options
[
'executable'
],
...
@@ -368,7 +374,14 @@ class Buildout(UserDict.DictMixin):
...
@@ -368,7 +374,14 @@ class Buildout(UserDict.DictMixin):
# Now copy buildout and setuptools eggs, and record destination eggs:
# Now copy buildout and setuptools eggs, and record destination eggs:
entries
=
[]
entries
=
[]
for
name
in
'setuptools'
,
'zc.buildout'
:
copy_list
=
[
'setuptools'
,
'zc.buildout'
]
try
:
import
slapos.libnetworkcache
except
ImportError
:
pass
else
:
copy_list
.
append
(
'slapos.libnetworkcache'
)
for
name
in
copy_list
:
r
=
pkg_resources
.
Requirement
.
parse
(
name
)
r
=
pkg_resources
.
Requirement
.
parse
(
name
)
dist
=
ws
.
find
(
r
)
dist
=
ws
.
find
(
r
)
if
dist
.
precedence
==
pkg_resources
.
DEVELOP_DIST
:
if
dist
.
precedence
==
pkg_resources
.
DEVELOP_DIST
:
...
...
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