From 5eabbd8806b93cb73112147aa3af22da44bf36bd Mon Sep 17 00:00:00 2001 From: offbeat Date: Thu, 4 Jul 2024 15:44:40 +0400 Subject: [PATCH] deleted redundant files --- build_wheel.sh | 27 --------------------------- test_and_upload_wheel.sh | 15 --------------- 2 files changed, 42 deletions(-) delete mode 100644 build_wheel.sh delete mode 100644 test_and_upload_wheel.sh diff --git a/build_wheel.sh b/build_wheel.sh deleted file mode 100644 index 43d7dab58..000000000 --- a/build_wheel.sh +++ /dev/null @@ -1,27 +0,0 @@ -!/bin/bash -set -e -u -x - -function repair_wheel { - wheel="$1" - if ! /opt/_internal/cpython-3.9.19/bin/auditwheel show "$wheel"; then - echo "Skipping non-platform wheel $wheel" - else - /opt/_internal/cpython-3.9.19/bin/auditwheel repair "$wheel" --plat "$PLAT" -w $WHEEL_DIR - fi -} - -# Compile wheels -for PYBIN in /opt/python/*/bin; do - if [[ "${PYBIN}" != *cp311* ]] && [[ "${PYBIN}" != *cp312* ]] && [[ "${PYBIN}" != *cp313* ]] && [[ "${PYBIN}" != *cp36* ]] && [[ "${PYBIN}" != *cp37* ]] && [[ "${PYBIN}" != *py37* ]] && [[ "${PYBIN}" != *cp38* ]] && [[ "${PYBIN}" != *py38* ]] && [[ "${PYBIN}" != *py39* ]] && [[ "${PYBIN}" != *cp310* ]] && [[ "${PYBIN}" != *py310* ]]; then - "${PYBIN}/pip" install --upgrade pip - "${PYBIN}/pip" install -r ${SFM_DIR}/requirements.txt - "${PYBIN}/pip" wheel $SFM_DIR --no-deps -w $WHEEL_DIR - fi -done - -# Bundle external shared libraries into the wheels -for whl in $WHEEL_DIR/*.whl; do - repair_wheel "$whl" -done - -cd ${WHEEL_DIR} && rm -rf *-linux*whl diff --git a/test_and_upload_wheel.sh b/test_and_upload_wheel.sh deleted file mode 100644 index 485b763c0..000000000 --- a/test_and_upload_wheel.sh +++ /dev/null @@ -1,15 +0,0 @@ -!/bin/bash -set -e -u -x - -# Install packages and test -for PYBIN in /opt/python/*/bin; do - if [[ "${PYBIN}" != *cp311* ]] && [[ "${PYBIN}" != *cp312* ]] && [[ "${PYBIN}" != *cp313* ]] && [[ "${PYBIN}" != *cp36* ]] && [[ "${PYBIN}" != *cp37* ]] && [[ "${PYBIN}" != *py37* ]] && [[ "${PYBIN}" != *cp38* ]] && [[ "${PYBIN}" != *py38* ]] && [[ "${PYBIN}" != *py39* ]] && [[ "${PYBIN}" != *cp310* ]] && [[ "${PYBIN}" != *py310* ]]; then - "${PYBIN}/pip" install opensfm --no-index -f $WHEEL_DIR - cd / && "${PYBIN}/python" -c "import opensfm" - fi -done - - -for WHL in $WHEEL_DIR/*.whl; do - /opt/python/cp39-cp39/bin/python -m twine upload --repository-url "http://pypi.artichoke-labs.ai" $WHL -done