From 4861d6a38760b0dc01332e072d5d965b1960d0b9 Mon Sep 17 00:00:00 2001 From: Joel Bender Date: Sat, 25 Mar 2017 23:12:16 -0400 Subject: [PATCH] check that the version is installed --- release_to_pypi.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/release_to_pypi.sh b/release_to_pypi.sh index c94f9be..d12e8c4 100755 --- a/release_to_pypi.sh +++ b/release_to_pypi.sh @@ -10,10 +10,12 @@ rm -Rfv build/ # python2.5 setup.py bdist_egg # rm -Rfv build/ -for ver in 2.7 3.4; do - python$ver setup.py bdist_egg - python$ver setup.py bdist_wheel - rm -Rfv build/ +for version in 2.7 3.4 3.5 3.6; do + if [ -a "`which python$version`" ]; then + python$ver setup.py bdist_egg + python$ver setup.py bdist_wheel + rm -Rfv build/ + fi done read -p "Upload to PyPI? [y/n/x] " yesno || exit 1