Skip to content

Commit 15132ef

Browse files
committed
Improve dist install checks.
Also python -m build to build sdist tarball as well.
1 parent 4d31b51 commit 15132ef

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

scripts/dist_install_check.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@
1818
set -e
1919

2020
function cleanup() {
21-
rm -f dist/apache*libcloud*.*
21+
rm -rf dist/apache*libcloud*.*
22+
pip uninstall -y apache-libcloud || true
2223
}
2324

2425
cleanup
2526

2627
trap cleanup EXIT
2728

28-
# Verify library installs without any dependencies when using python setup.py
29-
# install
29+
# Verify library installs without any dependencies when using source
30+
# tarball
3031
echo "Running dist install checks"
3132
python --version
3233

@@ -37,8 +38,10 @@ pip show typing && exit 1
3738
pip show enum34 && exit 1
3839
pip show apache-libcloud && exit 1
3940

40-
# Install the library
41-
pip install .
41+
# Build and install the library
42+
pip install build
43+
python -m build
44+
pip install dist/apache_libcloud-*.tar.gz
4245
pip show apache-libcloud
4346

4447
# Verify all dependencies were installed

scripts/dist_wheel_install_check.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
set -e
2121

2222
function cleanup() {
23-
rm -f dist/apache*libcloud*.*
23+
rm -rf dist/apache*libcloud*.*
24+
pip uninstall apache-libcloud || true
2425
}
2526

2627
cleanup

0 commit comments

Comments
 (0)