Commit c6fab4fe authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼 Committed by Rafael Monnerat

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

This reverts commit 6e5b4d76 and commit 055ffef4.

After slapos.buildout@0abf873d we don't have compiled wheels anymore
parent 5cb0180c
......@@ -47,20 +47,6 @@ 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%%-*}
url=$(python3 $CURRENT_DIRECTORY/pypi_download.py $package $version)
echo "Fetching $package at version $version (at $url)"
wget $url
rm $f
done
cd -
# remove all files from build keeping only caches
echo "Deleting unecessary files to reduce source tarball size"
......
#!/usr/bin/python3
from pypi_simple import PyPISimple
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("egg")
parser.add_argument("version")
args = parser.parse_args()
with PyPISimple() as client:
page = client.get_project_page(args.egg)
for pkg in page.packages:
#print(pkg.version)
#print(pkg)
if pkg.version == args.version and pkg.package_type == 'sdist':
print(pkg.url)
exit()
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