Commit f46e683b authored by Andrew Murray's avatar Andrew Murray
Browse files

Only remove original wheel if new wheel is created

parent c2890dc8
...@@ -16,9 +16,12 @@ function repair_wheelhouse { ...@@ -16,9 +16,12 @@ function repair_wheelhouse {
if [[ $whl == *none-any.whl ]]; then # Pure Python wheel if [[ $whl == *none-any.whl ]]; then # Pure Python wheel
if [ "$in_dir" != "$out_dir" ]; then cp $whl $out_dir; fi if [ "$in_dir" != "$out_dir" ]; then cp $whl $out_dir; fi
else else
wheel_count=$(find $out_dir -name *.whl | wc -l)
auditwheel repair $whl -w $out_dir/ auditwheel repair $whl -w $out_dir/
# Remove unfixed if writing into same directory if [[ $(find $out_dir -name *.whl | wc -l) -gt $wheel_count ]]; then
if [ "$in_dir" == "$out_dir" ]; then rm $whl; fi # Remove unfixed if writing into same directory
if [ "$in_dir" == "$out_dir" ]; then rm $whl; fi
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