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