This is an automated email from the ASF dual-hosted git repository. tomaz pushed a commit to branch chore/more_install_checks in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 15132efc04400d806b9260d761ea9c6609c2b7b3 Author: Tomaz Muraus <to...@tomaz.me> AuthorDate: Sun Mar 2 17:52:53 2025 +0100 Improve dist install checks. Also python -m build to build sdist tarball as well. --- scripts/dist_install_check.sh | 13 ++++++++----- scripts/dist_wheel_install_check.sh | 3 ++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/dist_install_check.sh b/scripts/dist_install_check.sh index 3ef04b25c..4b88169b7 100755 --- a/scripts/dist_install_check.sh +++ b/scripts/dist_install_check.sh @@ -18,15 +18,16 @@ set -e function cleanup() { - rm -f dist/apache*libcloud*.* + rm -rf dist/apache*libcloud*.* + pip uninstall -y apache-libcloud || true } cleanup trap cleanup EXIT -# Verify library installs without any dependencies when using python setup.py -# install +# Verify library installs without any dependencies when using source +# tarball echo "Running dist install checks" python --version @@ -37,8 +38,10 @@ pip show typing && exit 1 pip show enum34 && exit 1 pip show apache-libcloud && exit 1 -# Install the library -pip install . +# Build and install the library +pip install build +python -m build +pip install dist/apache_libcloud-*.tar.gz pip show apache-libcloud # Verify all dependencies were installed diff --git a/scripts/dist_wheel_install_check.sh b/scripts/dist_wheel_install_check.sh index 09402581b..5dd41e8d3 100755 --- a/scripts/dist_wheel_install_check.sh +++ b/scripts/dist_wheel_install_check.sh @@ -20,7 +20,8 @@ set -e function cleanup() { - rm -f dist/apache*libcloud*.* + rm -rf dist/apache*libcloud*.* + pip uninstall apache-libcloud || true } cleanup