Commit 6e5b4d76 authored by Rafael Monnerat's avatar Rafael Monnerat

OBS: download source instead of compiled wheels so that it can build in OBS

parent 631e6dd1
...@@ -45,6 +45,19 @@ echo "$BUILD_ROOT_DIRECTORY" > $CURRENT_DIRECTORY/$SLAPOS_DIRECTORY/slapos/origi ...@@ -45,6 +45,19 @@ echo "$BUILD_ROOT_DIRECTORY" > $CURRENT_DIRECTORY/$SLAPOS_DIRECTORY/slapos/origi
-f http://www.nexedi.org/static/packages/source/slapos.buildout/ && \ -f http://www.nexedi.org/static/packages/source/slapos.buildout/ && \
./bin/buildout -v) || (./bin/buildout -v || (echo "Failed to run buildout, exiting." && exit 1)) ./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 # remove all files from build keeping only caches
echo "Deleting unecessary files to reduce source tarball size" echo "Deleting unecessary files to reduce source tarball size"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment