Redmine #1835: updated setup script to use new packages

This commit is contained in:
Cyprian Laskowski 2021-03-18 22:00:13 +01:00
parent b931955dcb
commit 60db704fc4

View File

@ -2,39 +2,34 @@
cd .. cd ..
## set up virtual environment ## get dependencies
python3 -m venv venv
source venv/bin/activate
pip install wheel
pip install classla
pip install lxml
pip install obeliks
pip install psycopg2cffi
pip install sqlalchemy
python -c "import classla; classla.download('sl_ssj_jos')" <<< $'Y\nresources/classla'
deactivate
## get needed repositories
git clone git@gitea.cjvt.si:redmine_projects/nova_slovnica.git git clone git@gitea.cjvt.si:redmine_projects/nova_slovnica.git
git clone git@gitea.cjvt.si:ozbolt/luscenje_struktur.git git clone git@gitea.cjvt.si:ozbolt/luscenje_struktur.git
git clone git@gitea.cjvt.si:generic/data_admin.git git clone git@gitea.cjvt.si:generic/data_admin.git
git clone git@gitea.cjvt.si:generic/xml_schemas.git git clone git@gitea.cjvt.si:generic/xml_schemas.git
scp -P 3022 proc1.cjvt.si:/net/nas/resources/miscellaneous/structures/structures.xml .
## put needed scripts in place ## prepare python environment
cd scripts python3 -m venv venv
ln -s ../nova_slovnica/python/scripts/conllu_to_xml.py . source venv/bin/activate
ln -s ../nova_slovnica/python/scripts/assign_single_structures.py . pip install wheel
ln -s ../nova_slovnica/python/scripts/assign_structures.py . pip install lxml
ln -s ../nova_slovnica/python/scripts/create_structures.py . pip install psycopg2cffi
ln -s ../nova_slovnica/python/scripts/translate_jos.py . pip install sqlalchemy
ln -s ../nova_slovnica/python/scripts/tei_to_dictionary.py . pip install classla
ln -s ../luscenje_struktur/wani.py . python -c "import classla; classla.download('sl_ssj_jos')" <<< $'Y\nresources/classla'
cd .. pip install obeliks
pip install nova_slovnica/python/package/
pip install luscenje_struktur/
pip install package/
deactivate
## put needed resources in place ## put needed resources in place
cd resources cd resources
ln -s ../luscenje_struktur/wani.py .
ln -s ../nova_slovnica/resources/dict.xml . ln -s ../nova_slovnica/resources/dict.xml .
ln -s ../data_admin/resources/structures.xsd . ln -s ../data_admin/resources/structures.xsd .
ln -s ../xml_schemas/resources/schema/inventory.xsd . ln -s ../xml_schemas/resources/schema/inventory.xsd .
ln -s ../xml_schemas/resources/schema/monolingual_dictionaries.xsd . ln -s ../xml_schemas/resources/schema/monolingual_dictionaries.xsd .
mv ../structures.xml .
cd .. cd ..