Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
Arnaud Véron
slapos.package
Commits
1f4638c2
Commit
1f4638c2
authored
May 05, 2021
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re6st: cache egg source, not wheels
parent
d81da9c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
obs/re6st/make.py
obs/re6st/make.py
+8
-0
No files found.
obs/re6st/make.py
View file @
1f4638c2
...
@@ -81,6 +81,11 @@ def cfg(task):
...
@@ -81,6 +81,11 @@ def cfg(task):
mkdir
(
BUILD
)
mkdir
(
BUILD
)
open
(
task
.
output
,
"w"
).
write
(
cfg
)
open
(
task
.
output
,
"w"
).
write
(
cfg
)
def
no_wheel
():
args
=
[
"sed"
,
"-i"
,
r"/def _satisfied(/s/\
(
\bsource=\
)No
ne/\11/"
]
args
+=
glob
(
"eggs/zc.buildout-*/zc/buildout/easy_install.py"
)
check_call
(
args
)
@
task
((
cfg
,
slapos
),
(
BUILD
+
"/bin/buildout"
,
BUILD
+
"/bin/python"
))
@
task
((
cfg
,
slapos
),
(
BUILD
+
"/bin/buildout"
,
BUILD
+
"/bin/python"
))
def
bootstrap
(
task
):
def
bootstrap
(
task
):
try
:
try
:
...
@@ -95,9 +100,12 @@ def bootstrap(task):
...
@@ -95,9 +100,12 @@ def bootstrap(task):
# XXX: By starting with an older version,
# XXX: By starting with an older version,
# we'll have the wanted version in cache.
# we'll have the wanted version in cache.
"--setuptools-version"
,
"40.8.0"
),
input
=
bootstrap
)
"--setuptools-version"
,
"40.8.0"
),
input
=
bootstrap
)
no_wheel
()
check_call
((
"bin/buildout"
,
"buildout:extensions="
,
check_call
((
"bin/buildout"
,
"buildout:extensions="
,
"buildout:newest=true"
,
"buildout:parts=python-bootstrap"
))
"buildout:newest=true"
,
"buildout:parts=python-bootstrap"
))
no_wheel
()
check_call
((
"bin/python.tmp"
,
"bin/buildout"
,
"bootstrap"
))
check_call
((
"bin/python.tmp"
,
"bin/buildout"
,
"bootstrap"
))
assert
not
glob
(
"download-cache/dist/*.whl"
)
os
.
rename
(
"bin/python.tmp"
,
"bin/python"
)
os
.
rename
(
"bin/python.tmp"
,
"bin/python"
)
def
sdist_version
(
egg
):
def
sdist_version
(
egg
):
...
...
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