loci/scripts/fetch_wheels.sh
Gage Hugo 8e486b84cf Remove python 2 workaround in fetch_wheels.sh
This change removes a workaround to handle python 2 vs python 3
in the fetch_wheels.sh script. This is part of the effort to
remove the python 2 workarounds and references in the loci repo.

Change-Id: I7176d665548a14442b06214e450e7b17e54dd85d
2022-04-27 08:24:41 -05:00

16 lines
572 B
Bash
Executable File

#!/bin/bash
set -ex
python3 $(dirname $0)/fetch_wheels.py
mkdir -p /tmp/wheels/
# Exclude all files starting with '.' as these can be control files for
# AUFS which have special meaning on AUFS backed file stores.
tar xf /tmp/wheels.tar.gz --exclude='.*' -C /tmp/wheels/
# Presence of constraint for project we build (in Stein, Train for Horizon and
# Neutron) in uc breaks project installation with unsatisfied constraints error
# This line ensures that such constraint is absent for any future occurrence
sed -i "/^${PROJECT}===/d" /tmp/wheels/upper-constraints.txt