openmedialibrary_platform/Shared/update.sh
2018-12-15 01:08:49 +01:00

19 lines
432 B
Bash
Executable file

#!/bin/bash
set -e
cd `dirname $0`
export PIP_DOWNLOAD_CACHE=`pwd`/../../pip_cache
mkdir old
test -e lib && mv lib old/
test -e bin && mv bin old/
rm -rf p37
python3.7 -m venv p37
p37/bin/pip3 install -r ../../openmedialibrary/requirements-shared.txt
mkdir -p lib/python3.4
mv p37/lib/python3.7/site-packages lib/python3.4/site-packages
patch -p2 -R < large_pdf.patch
rm -r p37 old
rm -rf lib/python3.4/site-packages/netifaces*