Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.build
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
Xavier Thompson
slapos.recipe.build
Commits
b645dc1d
Commit
b645dc1d
authored
Sep 27, 2021
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around circular imports inside slapos.buildout
parent
a2172850
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
slapos/recipe/downloadunpacked.py
slapos/recipe/downloadunpacked.py
+3
-1
No files found.
slapos/recipe/downloadunpacked.py
View file @
b645dc1d
...
...
@@ -31,7 +31,6 @@ import tarfile
import
tempfile
from
hashlib
import
md5
from
setuptools
import
archive_util
from
zc.buildout
import
download
from
.
import
is_true
,
EnvironMixin
,
Shared
from
.
import
make_read_only_recursively
# for slapos.recipe.cmmi
...
...
@@ -60,6 +59,9 @@ class Recipe(EnvironMixin):
return
self
.
_shared
.
install
(
self
.
_install
)
def
_install
(
self
):
# WKRD: do not import at module-level because of circular imports
# inside slapos.buildout (see networkcache support)
from
zc.buildout
import
download
location
=
self
.
_shared
.
location
alternate
=
self
.
options
.
get
(
'alternate-url'
)
path
,
is_temp
=
download
.
Download
(
self
.
buildout
[
'buildout'
],
...
...
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