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
Lu Xu
slapos.package
Commits
6e5b4d76
Commit
6e5b4d76
authored
Feb 08, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OBS: download source instead of compiled wheels so that it can build in OBS
parent
631e6dd1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
obs/slapos/prepare_download_cache.sh
obs/slapos/prepare_download_cache.sh
+13
-0
No files found.
obs/slapos/prepare_download_cache.sh
View file @
6e5b4d76
...
...
@@ -45,6 +45,19 @@ echo "$BUILD_ROOT_DIRECTORY" > $CURRENT_DIRECTORY/$SLAPOS_DIRECTORY/slapos/origi
-f
http://www.nexedi.org/static/packages/source/slapos.buildout/
&&
\
./bin/buildout
-v
)
||
(
./bin/buildout
-v
||
(
echo
"Failed to run buildout, exiting."
&&
exit
1
))
echo
"Fetch all eggs in source instead of wheels so that it can build on OBS"
cd
"
$CURRENT_DIRECTORY
/
$SLAPOS_DIRECTORY
/slapos/slapos_repository/component/slapos/download-cache/dist"
for
f
in
*
x86_64.whl
do
package
=
${
f
%%-*
}
version
=
${
f
#*-
}
version
=
${
version
%%-*
}
echo
"Fetching
$package
at version
$version
"
pip download
--no-binary
:all:
$package
==
$version
rm
$f
done
cd
-
# remove all files from build keeping only caches
echo
"Deleting unecessary files to reduce source tarball size"
...
...
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