From: Sarah Hoffmann Date: Tue, 15 Jun 2021 07:02:17 +0000 (+0200) Subject: add dependency on datrie X-Git-Tag: v4.0.0~58^2~11 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/c4f6c06f447a9f2db97c34e76beb4157751cc569 add dependency on datrie --- diff --git a/.github/actions/build-nominatim/action.yml b/.github/actions/build-nominatim/action.yml index d0a89774..a3915616 100644 --- a/.github/actions/build-nominatim/action.yml +++ b/.github/actions/build-nominatim/action.yml @@ -1,13 +1,26 @@ name: 'Build Nominatim' +inputs: + ubuntu: + description: 'Version of Ubuntu to install on' + required: false + default: '20' + runs: using: "composite" steps: - name: Install prerequisites run: | - sudo apt-get install -y -qq libboost-system-dev libboost-filesystem-dev libexpat1-dev zlib1g-dev libbz2-dev libpq-dev libproj-dev libicu-dev python3-psycopg2 python3-pyosmium python3-dotenv python3-psutil python3-jinja2 python3-icu + sudo apt-get install -y -qq libboost-system-dev libboost-filesystem-dev libexpat1-dev zlib1g-dev libbz2-dev libpq-dev libproj-dev libicu-dev + if [ "x$UBUNTUVER" == "x18" ]; then + pip3 install python-dotenv psycopg2==2.7.7 jinja2==2.8 psutil==5.4.2 pyicu osmium + else + sudo apt-get install -y -qq python3-icu python3-datrie python3-pyosmium python3-jinja2 python3-psutil python3-psycopg2 python3-dotenv + fi shell: bash + env: + UBUNTUVER: ${{ inputs.ubuntu }} - name: Download dependencies run: | diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 1c5fc735..99ce5cfa 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -134,13 +134,8 @@ jobs: postgresql-version: ${{ matrix.postgresql }} postgis-version: ${{ matrix.postgis }} - uses: ./Nominatim/.github/actions/build-nominatim - - - name: Install extra dependencies for Ubuntu 18 - run: | - sudo apt-get install libicu-dev - pip3 install python-dotenv psycopg2==2.7.7 jinja2==2.8 psutil==5.4.2 pyicu osmium - shell: bash - if: matrix.ubuntu == 18 + with: + ubuntu: ${{ matrix.ubuntu }} - name: Clean installation run: rm -rf Nominatim build diff --git a/docs/admin/Installation.md b/docs/admin/Installation.md index 32fa8caa..a03b8304 100644 --- a/docs/admin/Installation.md +++ b/docs/admin/Installation.md @@ -45,6 +45,7 @@ For running Nominatim: * [psutil](https://github.com/giampaolo/psutil) * [Jinja2](https://palletsprojects.com/p/jinja/) * [PyICU](https://pypi.org/project/PyICU/) + * [datrie](https://github.com/pytries/datrie) * [PHP](https://php.net) (7.0 or later) * PHP-pgsql * PHP-intl (bundled with PHP) diff --git a/vagrant/Install-on-Centos-7.sh b/vagrant/Install-on-Centos-7.sh index 10684f20..9fb90150 100755 --- a/vagrant/Install-on-Centos-7.sh +++ b/vagrant/Install-on-Centos-7.sh @@ -42,7 +42,7 @@ python3-pip python3-setuptools python3-devel \ expat-devel zlib-devel libicu-dev - pip3 install --user psycopg2 python-dotenv psutil Jinja2 PyICU + pip3 install --user psycopg2 python-dotenv psutil Jinja2 PyICU datrie # diff --git a/vagrant/Install-on-Centos-8.sh b/vagrant/Install-on-Centos-8.sh index 788f5aa2..2330fc3b 100755 --- a/vagrant/Install-on-Centos-8.sh +++ b/vagrant/Install-on-Centos-8.sh @@ -35,7 +35,7 @@ python3-pip python3-setuptools python3-devel \ expat-devel zlib-devel libicu-dev - pip3 install --user psycopg2 python-dotenv psutil Jinja2 PyICU + pip3 install --user psycopg2 python-dotenv psutil Jinja2 PyICU datrie # diff --git a/vagrant/Install-on-Ubuntu-18.sh b/vagrant/Install-on-Ubuntu-18.sh index 33075bab..63c07bec 100755 --- a/vagrant/Install-on-Ubuntu-18.sh +++ b/vagrant/Install-on-Ubuntu-18.sh @@ -32,10 +32,10 @@ export DEBIAN_FRONTEND=noninteractive #DOCS: php php-pgsql php-intl libicu-dev python3-pip \ python3-psycopg2 python3-psutil python3-jinja2 python3-icu git -# The python-dotenv package that comes with Ubuntu 18.04 is too old, so +# The python-dotenv adn datrie package that comes with Ubuntu 18.04 is too old, so # install the latest version from pip: - pip3 install python-dotenv + pip3 install python-dotenv datrie # # System Configuration diff --git a/vagrant/Install-on-Ubuntu-20.sh b/vagrant/Install-on-Ubuntu-20.sh index 5fb52529..bbad7a57 100755 --- a/vagrant/Install-on-Ubuntu-20.sh +++ b/vagrant/Install-on-Ubuntu-20.sh @@ -33,7 +33,8 @@ export DEBIAN_FRONTEND=noninteractive #DOCS: postgresql-server-dev-12 postgresql-12-postgis-3 \ postgresql-contrib-12 postgresql-12-postgis-3-scripts \ php php-pgsql php-intl libicu-dev python3-dotenv \ - python3-psycopg2 python3-psutil python3-jinja2 python3-icu git + python3-psycopg2 python3-psutil python3-jinja2 \ + python3-icu python3-datrie git # # System Configuration