openmedialibrary_platform/Shared/update.sh
2016-02-23 11:36:40 +05:30

18 lines
401 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 p34
virtualenv -p /usr/bin/python3.4 p34
p34/bin/pip3 install -r ../../openmedialibrary/requirements-shared.txt
mkdir -p lib/python3.4
mv p34/lib/python3.4/site-packages lib/python3.4/site-packages
patch -p2 -R < large_pdf.patch
rm -r p34 old