update update.sh
This commit is contained in:
parent
a2291f58b8
commit
7365367c61
2 changed files with 27 additions and 12 deletions
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
to update you need:
|
||||||
|
|
||||||
|
apt install python3-pip python3.4 python3.5 python3.4-dev python3.5-dev
|
36
update.sh
36
update.sh
|
@ -1,7 +1,8 @@
|
||||||
HOME=`pwd`/home
|
#!/bin/bash
|
||||||
mkdir $HOME
|
set -e
|
||||||
export PIP_DOWNLOAD_CACHE=$HOME/../../../pip_cache
|
cd `dirname $0`
|
||||||
cat ../../openmedialibrary/requirements.txt \
|
export PIP_DOWNLOAD_CACHE=`pwd`/../pip_cache
|
||||||
|
cat ../openmedialibrary/requirements.txt \
|
||||||
| grep -v lxml \
|
| grep -v lxml \
|
||||||
| grep -v pyopenssl \
|
| grep -v pyopenssl \
|
||||||
| grep -v pyCrypto \
|
| grep -v pyCrypto \
|
||||||
|
@ -10,15 +11,26 @@ cat ../../openmedialibrary/requirements.txt \
|
||||||
> requirements.txt
|
> requirements.txt
|
||||||
echo setuptools >> requirements.txt
|
echo setuptools >> requirements.txt
|
||||||
echo six >> requirements.txt
|
echo six >> requirements.txt
|
||||||
pip3 install -r requirements.txt -I --user
|
|
||||||
mkdir old
|
mkdir old
|
||||||
mv lib bin old
|
test -e lib && mv lib old/
|
||||||
mv home/.local/lib lib
|
test -e bin && mv bin old/
|
||||||
test -e home/.local/bin && mv home/.local/bin bin
|
|
||||||
|
rm -rf p34 p35
|
||||||
|
|
||||||
|
virtualenv -p /usr/bin/python3.4 p34
|
||||||
|
p34/bin/pip3 install -r requirements.txt
|
||||||
|
|
||||||
|
mkdir -p lib/python3.4
|
||||||
|
mv p34/lib/python3.4/site-packages lib/python3.4/site-packages
|
||||||
|
|
||||||
virtualenv -p /usr/bin/python3.5 p35
|
virtualenv -p /usr/bin/python3.5 p35
|
||||||
p35/bin/pip3 install ed25519
|
p35/bin/pip3 install -r requirements.txt
|
||||||
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
|
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 \
|
||||||
|
site-packages/sqlalchemy/cutils.cpython-35m-x86_64-linux-gnu.so
|
||||||
|
do
|
||||||
|
cp p35/lib/python3.5/$f lib/python3.4/$f
|
||||||
|
done
|
||||||
|
|
||||||
rm -r home old requirements.txt p35
|
rm -r p34 p35 old requirements.txt
|
||||||
#sed -i "s#bin/python#bin/env python#" bin/gunicorn
|
|
||||||
|
|
Loading…
Reference in a new issue