summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-24 13:03:19 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-07-21 15:07:41 +0200
commit9cdef43f8ed342e2783fafb72708a33a5855bd26 (patch)
tree2964dc61d41f36b54b4725bee353b97354967b70
parentdb8c0812d6bfd7092c76fc2b5597ef9d0aa39b4c (diff)
downloadIshtar-9cdef43f8ed342e2783fafb72708a33a5855bd26.tar.bz2
Ishtar-9cdef43f8ed342e2783fafb72708a33a5855bd26.zip
📝 adapt develop installation for version 5
-rw-r--r--DEVELOP.md25
1 files changed, 15 insertions, 10 deletions
diff --git a/DEVELOP.md b/DEVELOP.md
index 2c9c6aaf3..e80a083f9 100644
--- a/DEVELOP.md
+++ b/DEVELOP.md
@@ -4,14 +4,20 @@ Installation instruction for a debian buster with sudo.
### Install base source code
``` bash
-sudo apt-get update
-sudo apt-get install git sed python3-venv python3-wheel python3-pip libpq-dev \
- python3-dev libjpeg-dev zlib1g-dev libxml2-dev libxslt1-dev libgeos-dev \
- python3-cairocffi tidy libtidy-dev binutils libproj-dev gdal-bin \
- libpangocairo-1.0-0 pandoc graphviz gettext
+sudo apt update
+
+# utils
+sudo apt install git sed binutils pandoc graphviz gettext python3-venv \
+ python3-wheel python3-pip locales-all
+# dev libraries
+sudo apt install python3-dev libpq-dev libjpeg-dev zlib1g-dev libxml2-dev \
+ libxslt1-dev libgeos-dev libtidy-dev libproj-dev libgdal-dev
+
+# libraries too painful to recompile
+sudo apt install python3-cairocffi tidy gdal-bin libpangocairo-1.0-0
cd my_workspace
-python3 -m venv ishtar-venv
+python3 -m venv --system-site-packages ishtar-venv
. ./ishtar-venv/bin/activate
git clone https://gitlab.com/iggdrasil/ishtar.git # or your forked project on gitlab
cd ishtar
@@ -21,8 +27,7 @@ pip3 install -r requirements.txt
### Install postgresql database
``` bash
-sudo apt install postgresql postgresql-contrib postgresql-11-postgis-2.5 \
- postgresql-11-postgis-2.5-scripts
+sudo apt install postgresql postgresql-contrib postgresql-postgis postgresql-postgis-scripts
sudo -u postgres psql
```
@@ -78,8 +83,8 @@ python3 ./manage.py migrate
# loading fixtures
FIXTURES="$ISHTAR_PATH/fixtures/initial_data-auth-fr.json $ISHTAR_PATH/ishtar_common/fixtures/initial_data-fr.json $ISHTAR_PATH/ishtar_common/fixtures/initial_importtypes-fr.json $ISHTAR_PATH/archaeological_operations/fixtures/initial_data-fr.json $ISHTAR_PATH/archaeological_operations/fixtures/initial_data_relation_type_norel-fr.json $ISHTAR_PATH/archaeological_operations/fixtures/initial_data_relation_type-fr.json $ISHTAR_PATH/archaeological_context_records/fixtures/initial_data-fr.json $ISHTAR_PATH/archaeological_context_records/fixtures/initial_data_relation_type_norel-fr.json $ISHTAR_PATH/archaeological_context_records/fixtures/initial_data_relation_type-fr.json $ISHTAR_PATH/archaeological_files/fixtures/initial_data-fr.json $ISHTAR_PATH/archaeological_finds/fixtures/initial_data-fr.json $ISHTAR_PATH/archaeological_warehouse/fixtures/initial_data-fr.json"
for data in $FIXTURES; do
- echo $data;
- python3 ./manage.py loaddata $data;
+ echo $data;
+ python3 ./manage.py loaddata $data;
done
# create superuser