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
Boxiang Sun
slapos.buildout
Commits
a306e450
Commit
a306e450
authored
Jun 23, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support correctly networkcache in outer methods.
parent
73b544e5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+16
-2
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+2
-1
No files found.
src/zc/buildout/buildout.py
View file @
a306e450
...
@@ -1120,6 +1120,21 @@ def _install_and_load(spec, group, entry, buildout):
...
@@ -1120,6 +1120,21 @@ def _install_and_load(spec, group, entry, buildout):
dest
=
buildout_options
[
'eggs-directory'
]
dest
=
buildout_options
[
'eggs-directory'
]
path
=
[
buildout_options
[
'develop-eggs-directory'
]]
path
=
[
buildout_options
[
'develop-eggs-directory'
]]
networkcache_kw
=
{}
if
LIBNETWORKCACHE_ENABLED
:
# support networkcache
networkcache_section_name
=
buildout_options
.
get
(
'networkcache-section'
)
if
networkcache_section_name
:
networkcache_section
=
buildout
[
networkcache_section_name
]
networkcache_kw
[
'download_cache_url'
]
=
networkcache_section
[
'download-cache-url'
]
networkcache_kw
[
'download_dir_url'
]
=
networkcache_section
[
'download-dir-url'
]
networkcache_kw
[
'upload_cache_url'
]
=
networkcache_section
.
get
(
'upload-cache-url'
)
networkcache_kw
[
'upload_dir_url'
]
=
networkcache_section
.
get
(
'upload-dir-url'
)
zc
.
buildout
.
easy_install
.
install
(
zc
.
buildout
.
easy_install
.
install
(
[
spec
],
dest
,
[
spec
],
dest
,
links
=
buildout
.
_links
,
links
=
buildout
.
_links
,
...
@@ -1129,8 +1144,7 @@ def _install_and_load(spec, group, entry, buildout):
...
@@ -1129,8 +1144,7 @@ def _install_and_load(spec, group, entry, buildout):
newest
=
buildout
.
newest
,
newest
=
buildout
.
newest
,
allow_hosts
=
buildout
.
_allow_hosts
,
allow_hosts
=
buildout
.
_allow_hosts
,
prefer_final
=
not
buildout
.
accept_buildout_test_releases
,
prefer_final
=
not
buildout
.
accept_buildout_test_releases
,
download_cache_url
=
self
.
download_cache_url
,
**
networkcache_kw
)
download_dir_url
=
self
.
download_dir_url
)
__doing__
=
'Loading %s recipe entry %s:%s.'
,
group
,
spec
,
entry
__doing__
=
'Loading %s recipe entry %s:%s.'
,
group
,
spec
,
entry
return
pkg_resources
.
load_entry_point
(
return
pkg_resources
.
load_entry_point
(
...
...
src/zc/buildout/easy_install.py
View file @
a306e450
...
@@ -1098,7 +1098,8 @@ def install(specs, dest,
...
@@ -1098,7 +1098,8 @@ def install(specs, dest,
path
=
None
,
working_set
=
None
,
newest
=
True
,
versions
=
None
,
path
=
None
,
working_set
=
None
,
newest
=
True
,
versions
=
None
,
use_dependency_links
=
None
,
allow_hosts
=
(
'*'
,),
use_dependency_links
=
None
,
allow_hosts
=
(
'*'
,),
include_site_packages
=
None
,
allowed_eggs_from_site_packages
=
None
,
include_site_packages
=
None
,
allowed_eggs_from_site_packages
=
None
,
prefer_final
=
None
,
download_dir_url
=
None
,
download_cache_url
=
None
):
prefer_final
=
None
,
download_dir_url
=
None
,
download_cache_url
=
None
,
upload_dir_url
=
None
,
upload_cache_url
=
None
):
installer
=
Installer
(
installer
=
Installer
(
dest
,
links
,
index
,
executable
,
always_unzip
,
path
,
newest
,
dest
,
links
,
index
,
executable
,
always_unzip
,
path
,
newest
,
versions
,
use_dependency_links
,
allow_hosts
=
allow_hosts
,
versions
,
use_dependency_links
,
allow_hosts
=
allow_hosts
,
...
...
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