diff --git a/install.sh b/install.sh index 3f523fd26d2098be82649b4bf9ab2aefde6fb485..f204a7922dcdba3ad27786cf0edd7ce43b1ac4a6 100755 --- a/install.sh +++ b/install.sh @@ -1,14 +1,18 @@ #!/bin/bash # Script to install binarycpython in the current venv - VERSION_NUMBER=$(cat "VERSION") echo "installing binarcpython version $VERSION_NUMBER" +# Clean up all the stuff from before python setup.py clean --all + +# Go into a directory that doesnt contain 'binarycpython' so pip will uninstall the one in the venv, not the local one. cd src pip uninstall -y binarycpython cd ../ + +# Create build, sdist and install it into the venv python setup.py build --force python setup.py sdist pip install -v dist/binarycpython-$VERSION_NUMBER.tar.gz