Skip to content

Commit f10f4d7

Browse files
committed
Make build-wheels script cleanup older libraries when building with new binary
1 parent e8c0489 commit f10f4d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build-wheels.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ for PYBIN in /opt/python/cp{27,35,36,37}*/bin; do
1313
export PYTHON_LIB=$(${PYBIN}/python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
1414
export LIBRARY_PATH="$LIBRARY_PATH:$PYTHON_LIB"
1515
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB"
16+
rm -f /io/build/lib.*
1617
"${PYBIN}/pip" install -U setuptools setuptools-rust wheel
1718
"${PYBIN}/pip" wheel /io/ -w /io/dist/
1819
done

0 commit comments

Comments
 (0)