Install Pandora's python-ox system-wide also for python 2, fixes #11

This commit is contained in:
Disassembler 2017-09-24 17:24:39 +02:00
parent cd96122223
commit 14a7bb4a68

View File

@ -8,13 +8,12 @@ apt-key add ${SOURCE_DIR}/pandora/pandora.gpg
# Install packages # Install packages
apt-get -y update apt-get -y update
apt-get -y --no-install-recommends install gpac ffmpeg mkvtoolnix oxframe poppler-utils python3-html5lib python3-lxml python3-numpy python3-ox python3-pil python3-pip python3-psycopg2 python3-pyinotify python3-setuptools python3-simplejson python3-virtualenv rabbitmq-server virtualenv youtube-dl apt-get -y --no-install-recommends install gpac ffmpeg mkvtoolnix oxframe poppler-utils python-ox python3-html5lib python3-lxml python3-numpy python3-ox python3-pil python3-pip python3-psycopg2 python3-pyinotify python3-setuptools python3-simplejson python3-virtualenv rabbitmq-server virtualenv youtube-dl
# Clone git repositories # Clone git repositories
git clone --depth 1 https://git.0x2620.org/pandora.git /srv/pandora git clone --depth 1 https://git.0x2620.org/pandora.git /srv/pandora
git clone --depth 1 https://git.0x2620.org/oxjs.git /srv/pandora/static/oxjs git clone --depth 1 https://git.0x2620.org/oxjs.git /srv/pandora/static/oxjs
git clone --depth 1 https://git.0x2620.org/oxtimelines.git /srv/pandora/src/oxtimelines git clone --depth 1 https://git.0x2620.org/oxtimelines.git /srv/pandora/src/oxtimelines
git clone --depth 1 https://git.0x2620.org/python-ox.git /srv/pandora/src/python-ox
# Copy Czech translataion # Copy Czech translataion
cp ${SOURCE_DIR}/pandora/srv/pandora/static/json/locale.0xdb.cs.json /srv/pandora/static/json/locale.0xdb.cs.json cp ${SOURCE_DIR}/pandora/srv/pandora/static/json/locale.0xdb.cs.json /srv/pandora/static/json/locale.0xdb.cs.json
@ -26,7 +25,6 @@ cp ${SOURCE_DIR}/pandora/srv/pandora/static/oxjs/source/UI/json/locale.cs.json /
# Create python virtualenv # Create python virtualenv
virtualenv --system-site-packages -p /usr/bin/python3 /srv/pandora virtualenv --system-site-packages -p /usr/bin/python3 /srv/pandora
cd /srv/pandora/src/oxtimelines && /srv/pandora/bin/python setup.py develop cd /srv/pandora/src/oxtimelines && /srv/pandora/bin/python setup.py develop
cd /srv/pandora/src/python-ox && /srv/pandora/bin/python setup.py develop
/srv/pandora/bin/pip install -r /srv/pandora/requirements.txt /srv/pandora/bin/pip install -r /srv/pandora/requirements.txt
# Create PostgreSQL user and database # Create PostgreSQL user and database