openmedialibrary_platform/Linux_x86_64/update.sh

23 lines
745 B
Bash
Raw Normal View History

2013-10-11 17:28:32 +00:00
HOME=`pwd`/home
mkdir $HOME
export PIP_DOWNLOAD_CACHE=$HOME/../../../pip_cache
2015-11-04 12:38:48 +00:00
cat ../../openmedialibrary/requirements.txt \
| grep -v lxml \
| grep -v pyopenssl \
| grep -v simplejson \
> requirements.txt
echo setuptools >> requirements.txt
echo six >> requirements.txt
2014-09-30 16:15:32 +00:00
pip3 install -r requirements.txt -I --user
2013-10-11 17:28:32 +00:00
mkdir old
mv lib bin old
mv home/.local/lib lib
2015-11-04 12:38:48 +00:00
test -e home/.local/bin && mv home/.local/bin bin
2013-10-11 17:28:32 +00:00
2015-11-04 20:20:47 +00:00
virtualenv -p /usr/bin/python3.5 p35
p35/bin/pip3 install ed25519
cp p35/lib/python3.5/site-packages/ed25519/_ed25519.cpython-35m-x86_64-linux-gnu.so lib/python3.4/site-packages/ed25519/_ed25519.cpython-35m-x86_64-linux-gnu.so
rm -r home old requirements.txt p35
2013-10-11 17:28:32 +00:00
#sed -i "s#bin/python#bin/env python#" bin/gunicorn