Last active
July 6, 2020 10:06
-
-
Save arnobaer/ce01bc47ae25d3b1423952b337c375a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
version="$1" | |
if [ -z "$1" ] | |
then | |
echo "usage: build-longterm <version>" | |
exit 1 | |
fi | |
rm -rf "comet-longterm-$version" | |
mkdir "comet-longterm-$version" | |
cd "comet-longterm-$version" | |
python -m venv env | |
. env/Scripts/activate | |
pip install -U pip | |
pip install wheel | |
pip install pyinstaller | |
# Workaround for comet 0.5.0 | |
git clone https://github.com/hephy-dd/comet.git | |
cd comet | |
git checkout 0.5.0 | |
pip install -r requirements.txt | |
python setup.py develop | |
python setup.py test | |
cd .. | |
git clone https://github.com/hephy-dd/comet-longterm.git | |
cd comet-longterm | |
git checkout "$version" | |
pip install -r requirements.txt | |
python setup.py develop | |
python setup.py test | |
pyinstaller ./pyinstaller.spec | |
ls -l ./dist | |
cd .. | |
deactivate | |
cd .. | |
echo "Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment