openmedialibrary_platform_l.../update.sh

49 lines
1.5 KiB
Bash
Raw Normal View History

2016-02-22 11:13:18 +00:00
#!/bin/bash
set -e
cd `dirname $0`
export PIP_DOWNLOAD_CACHE=`pwd`/../pip_cache
cat ../openmedialibrary/requirements.txt \
2016-02-06 09:37:19 +00:00
| grep -v lxml \
| grep -v pyopenssl \
| grep -v pyCrypto \
| grep -v pillow \
| grep -v simplejson \
> requirements.txt
echo setuptools >> requirements.txt
echo six >> requirements.txt
mkdir old
2016-02-22 11:13:18 +00:00
test -e lib && mv lib old/
test -e bin && mv bin old/
2018-12-14 13:03:19 +00:00
rm -rf p35 p36 p37
2016-02-22 11:13:18 +00:00
2018-12-14 13:03:19 +00:00
/usr/bin/python3.7 -m venv p37
p37/bin/pip3 install -r requirements.txt
2016-02-22 11:13:18 +00:00
2018-12-14 13:03:19 +00:00
mkdir -p lib/python3.7
mv p37/lib/python3.7/site-packages lib/python3.7/site-packages
2016-02-06 09:37:19 +00:00
2018-12-14 13:03:19 +00:00
/usr/bin/python3.5 -m venv p35
2016-02-22 11:13:18 +00:00
p35/bin/pip3 install -r requirements.txt
for f in site-packages/ed25519/_ed25519.cpython-35m-x86_64-linux-gnu.so \
site-packages/sqlalchemy/cprocessors.cpython-35m-x86_64-linux-gnu.so \
site-packages/sqlalchemy/cresultproxy.cpython-35m-x86_64-linux-gnu.so \
2016-03-26 16:25:07 +00:00
site-packages/sqlalchemy/cutils.cpython-35m-x86_64-linux-gnu.so \
site-packages/netifaces.cpython-35m-x86_64-linux-gnu.so
2016-02-22 11:13:18 +00:00
do
2018-12-14 13:03:19 +00:00
cp p35/lib/python3.5/$f lib/python3.7/$f
2016-02-22 11:13:18 +00:00
done
2016-02-06 09:37:19 +00:00
2018-12-14 13:03:19 +00:00
/usr/bin/python3.6 -m venv p36
2017-10-13 12:49:49 +00:00
p36/bin/pip3 install -r requirements.txt
for f in site-packages/ed25519/_ed25519.cpython-36m-x86_64-linux-gnu.so \
site-packages/sqlalchemy/cprocessors.cpython-36m-x86_64-linux-gnu.so \
site-packages/sqlalchemy/cresultproxy.cpython-36m-x86_64-linux-gnu.so \
site-packages/sqlalchemy/cutils.cpython-36m-x86_64-linux-gnu.so \
site-packages/netifaces.cpython-36m-x86_64-linux-gnu.so
do
2018-12-14 13:03:19 +00:00
cp p36/lib/python3.6/$f lib/python3.7/$f
2017-10-13 12:49:49 +00:00
done
2018-12-14 13:03:19 +00:00
rm -r p35 p36 p37 old requirements.txt