nucypher/scripts/installation/rebuild_pipenv.sh

26 lines
574 B
Bash
Raw Normal View History

2019-05-27 05:13:46 +00:00
#!/usr/bin/env bash
# can change output file names with rebuild_pipenv.sh <prefix>
PREFIX=${1:-requirements}
2019-05-27 05:13:46 +00:00
read -p "Ok if we update your pip and setuptools? (type y or Y) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
pip install --upgrade pip
pip install --upgrade setuptools
fi
rm $PREFIX.txt
rm dev-$PREFIX.txt
2019-05-27 05:13:46 +00:00
touch $PREFIX.txt
touch dev-$PREFIX.txt
2019-05-27 05:13:46 +00:00
set -e
echo "rebuilding pipenv.lock... this will take awhile."
pipenv lock --clear
pipenv lock --clear --pre --requirements > $PREFIX.txt
pipenv lock --clear --pre --requirements --dev > dev-$PREFIX.txt