Skip to content

Instantly share code, notes, and snippets.

@arnobaer
Created March 18, 2021 15:53
Show Gist options
  • Save arnobaer/bea571db5f92685a954781ef922e3784 to your computer and use it in GitHub Desktop.
Save arnobaer/bea571db5f92685a954781ef922e3784 to your computer and use it in GitHub Desktop.
Installer GitBash on Windows
set -e
version=$1
if [ -z "$version" ]; then
echo "usage: $0 <version>"
exit 1
fi
install_dir="./envs/comet-pqc-$version"
if [ -d "$install_dir" ]; then
echo "directory already exists: $install_dir"
exit 1
fi
mkdir -p "$install_dir"
cd "$install_dir"
echo "call env\Scripts\activate.bat" > comet-pqc.bat
echo "python -m comet_pqc" >> comet-pqc.bat
echo "pause" >> comet-pqc.bat
python -m venv env
. env/Scripts/activate
python --version
python -m pip install -U pip
python -m pip --version
python -m pip install "git+https://github.com/hephy-dd/comet-pqc.git@$version"
comet-pqc --version
deactivate
echo "done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment