From 0c66b961b7f467b00556dbcb470885d71406ab2f Mon Sep 17 00:00:00 2001 From: dh00601 <dh00601@surrey.ac.uk> Date: Wed, 29 Dec 2021 13:45:45 +0000 Subject: [PATCH] cleaning up the installation scripts --- install_without_dependencies.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/install_without_dependencies.sh b/install_without_dependencies.sh index 2a7775c07..ae91f0442 100755 --- a/install_without_dependencies.sh +++ b/install_without_dependencies.sh @@ -1,12 +1,18 @@ #!/bin/bash # Script to install binarycpython in the current venv - VERSION_NUMBER=$(cat "VERSION") echo "installing binarcpython version $VERSION_NUMBER" -python setup.py clean -pip uninstall binarycpython +# 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 --ignore-installed --no-dependencies -v dist/binarycpython-$VERSION_NUMBER.tar.gz -- GitLab