File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1818set -e
1919
2020function cleanup() {
21- rm -f dist/apache* libcloud* .*
21+ rm -rf dist/apache* libcloud* .*
22+ pip uninstall -y apache-libcloud || true
2223}
2324
2425cleanup
2526
2627trap 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
3031echo " Running dist install checks"
3132python --version
3233
@@ -37,8 +38,10 @@ pip show typing && exit 1
3738pip show enum34 && exit 1
3839pip 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
4245pip show apache-libcloud
4346
4447# Verify all dependencies were installed
Original file line number Diff line number Diff line change 2020set -e
2121
2222function cleanup() {
23- rm -f dist/apache* libcloud* .*
23+ rm -rf dist/apache* libcloud* .*
24+ pip uninstall apache-libcloud || true
2425}
2526
2627cleanup
You can’t perform that action at this time.
0 commit comments