2020-09-17 07:29:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
2021-03-18 21:00:13 +00:00
|
|
|
## get dependencies
|
|
|
|
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:generic/data_admin.git
|
|
|
|
git clone git@gitea.cjvt.si:generic/xml_schemas.git
|
|
|
|
scp -P 3022 proc1.cjvt.si:/net/nas/resources/miscellaneous/structures/structures.xml .
|
|
|
|
|
|
|
|
## prepare python environment
|
2020-09-17 07:29:53 +00:00
|
|
|
python3 -m venv venv
|
|
|
|
source venv/bin/activate
|
2021-02-19 17:14:17 +00:00
|
|
|
pip install wheel
|
2021-01-12 10:21:25 +00:00
|
|
|
pip install lxml
|
2021-01-27 11:48:20 +00:00
|
|
|
pip install psycopg2cffi
|
|
|
|
pip install sqlalchemy
|
2021-03-18 21:00:13 +00:00
|
|
|
pip install classla
|
2021-03-25 09:56:37 +00:00
|
|
|
python -c "import classla; classla.download('sl', type='standard_jos')" <<< $'Y\nresources/classla'
|
2021-03-18 21:00:13 +00:00
|
|
|
pip install obeliks
|
|
|
|
pip install nova_slovnica/python/package/
|
|
|
|
pip install luscenje_struktur/
|
|
|
|
pip install package/
|
2020-09-17 07:29:53 +00:00
|
|
|
deactivate
|
|
|
|
|
|
|
|
## put needed resources in place
|
|
|
|
cd resources
|
2021-03-18 21:00:13 +00:00
|
|
|
ln -s ../luscenje_struktur/wani.py .
|
2020-09-17 07:29:53 +00:00
|
|
|
ln -s ../nova_slovnica/resources/dict.xml .
|
2020-11-04 17:05:12 +00:00
|
|
|
ln -s ../data_admin/resources/structures.xsd .
|
|
|
|
ln -s ../xml_schemas/resources/schema/inventory.xsd .
|
|
|
|
ln -s ../xml_schemas/resources/schema/monolingual_dictionaries.xsd .
|
2021-03-18 21:00:13 +00:00
|
|
|
mv ../structures.xml .
|
2020-09-17 07:29:53 +00:00
|
|
|
cd ..
|