Commit a448d8d6 authored by Matthew Brett's avatar Matthew Brett
Browse files

Remove unfixed wheels when writing into same dir

parent ecfb27f4
......@@ -9,9 +9,10 @@ source $MULTIBUILD_DIR/common_utils.sh
# Change into root directory of repo
cd /io
# Configuration for this package
# This can override `install_wheel`, otherwise defined in common_utils.sh.
# It must define `run_tests`.
# Configuration for this package in `config.sh`.
# This can overwrite `install_run`' and `install_wheel` (called from
# `install_run`). These are otherwise defined in common_utils.sh.
# `config.sh` must define `run_tests` if using the default `install_run`.
source config.sh
install_run
......@@ -33,10 +33,12 @@ function repair_wheelhouse {
local in_dir=$1
local out_dir=${2:-$in_dir}
for whl in $in_dir/*.whl; do
if [[ $whl == *none-any.whl ]]; then
[ "$in_dir" == "$out_dir" ] || cp $whl $out_dir
if [[ $whl == *none-any.whl ]]; then # Pure Python wheel
if [ "$in_dir" != "$out_dir" ]; then cp $whl $out_dir; fi
else
auditwheel repair $whl -w $out_dir/
# Remove unfixed if writing into same directory
if [ "$in_dir" == "$out_dir" ]; then rm $whl; fi
fi
done
chmod -R a+rwX $out_dir
......
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