Skip to content

Commit

Permalink
DKR: Always install package to generate _version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Mar 15, 2023
1 parent 3e27150 commit 47e35c0
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions deploy/docker/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,27 @@
BUILDTYPE=$1
DEPLOYSERVER=$2

# First update pip
pip install --no-cache-dir pip

case $BUILDTYPE in
release)
pip install --no-cache-dir pip-tools && pip-sync stable-requirements.txt;;
pip install --no-cache-dir pip-tools
pip-sync stable-requirements.txt
pip install --no-cache-dir /src
;;
latest)
pip install --no-cache-dir /src;;
pip install --no-cache-dir /src
;;
latest-test)
pip install --no-cache-dir /src[test];;
pip install --no-cache-dir /src[test]
;;
*)
echo "Unknown command" && exit 1;;
echo "Unknown command"
exit 1
;;
esac

if [ "$DEPLOYSERVER" = "gunicorn" ]; then
pip install gunicorn
pip install --no-cache-dir gunicorn
fi

0 comments on commit 47e35c0

Please sign in to comment.