openmedialibrary_platform/Linux_x86_64/update.sh
2015-11-04 13:38:48 +01:00

18 lines
513 B
Bash
Executable file

HOME=`pwd`/home
mkdir $HOME
export PIP_DOWNLOAD_CACHE=$HOME/../../../pip_cache
cat ../../openmedialibrary/requirements.txt \
| grep -v lxml \
| grep -v pyopenssl \
| grep -v simplejson \
> requirements.txt
echo setuptools >> requirements.txt
echo six >> requirements.txt
pip3 install -r requirements.txt -I --user
mkdir old
mv lib bin old
mv home/.local/lib lib
test -e home/.local/bin && mv home/.local/bin bin
rm -r home old requirements.txt
#sed -i "s#bin/python#bin/env python#" bin/gunicorn