mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
add dependency on datrie
This commit is contained in:
15
.github/actions/build-nominatim/action.yml
vendored
15
.github/actions/build-nominatim/action.yml
vendored
@@ -1,13 +1,26 @@
|
|||||||
name: 'Build Nominatim'
|
name: 'Build Nominatim'
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
ubuntu:
|
||||||
|
description: 'Version of Ubuntu to install on'
|
||||||
|
required: false
|
||||||
|
default: '20'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install prerequisites
|
- name: Install prerequisites
|
||||||
run: |
|
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
|
shell: bash
|
||||||
|
env:
|
||||||
|
UBUNTUVER: ${{ inputs.ubuntu }}
|
||||||
|
|
||||||
- name: Download dependencies
|
- name: Download dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
9
.github/workflows/ci-tests.yml
vendored
9
.github/workflows/ci-tests.yml
vendored
@@ -134,13 +134,8 @@ jobs:
|
|||||||
postgresql-version: ${{ matrix.postgresql }}
|
postgresql-version: ${{ matrix.postgresql }}
|
||||||
postgis-version: ${{ matrix.postgis }}
|
postgis-version: ${{ matrix.postgis }}
|
||||||
- uses: ./Nominatim/.github/actions/build-nominatim
|
- uses: ./Nominatim/.github/actions/build-nominatim
|
||||||
|
with:
|
||||||
- name: Install extra dependencies for Ubuntu 18
|
ubuntu: ${{ matrix.ubuntu }}
|
||||||
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
|
|
||||||
|
|
||||||
- name: Clean installation
|
- name: Clean installation
|
||||||
run: rm -rf Nominatim build
|
run: rm -rf Nominatim build
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ For running Nominatim:
|
|||||||
* [psutil](https://github.com/giampaolo/psutil)
|
* [psutil](https://github.com/giampaolo/psutil)
|
||||||
* [Jinja2](https://palletsprojects.com/p/jinja/)
|
* [Jinja2](https://palletsprojects.com/p/jinja/)
|
||||||
* [PyICU](https://pypi.org/project/PyICU/)
|
* [PyICU](https://pypi.org/project/PyICU/)
|
||||||
|
* [datrie](https://github.com/pytries/datrie)
|
||||||
* [PHP](https://php.net) (7.0 or later)
|
* [PHP](https://php.net) (7.0 or later)
|
||||||
* PHP-pgsql
|
* PHP-pgsql
|
||||||
* PHP-intl (bundled with PHP)
|
* PHP-intl (bundled with PHP)
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
python3-pip python3-setuptools python3-devel \
|
python3-pip python3-setuptools python3-devel \
|
||||||
expat-devel zlib-devel libicu-dev
|
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
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
python3-pip python3-setuptools python3-devel \
|
python3-pip python3-setuptools python3-devel \
|
||||||
expat-devel zlib-devel libicu-dev
|
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
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -32,10 +32,10 @@ export DEBIAN_FRONTEND=noninteractive #DOCS:
|
|||||||
php php-pgsql php-intl libicu-dev python3-pip \
|
php php-pgsql php-intl libicu-dev python3-pip \
|
||||||
python3-psycopg2 python3-psutil python3-jinja2 python3-icu git
|
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:
|
# install the latest version from pip:
|
||||||
|
|
||||||
pip3 install python-dotenv
|
pip3 install python-dotenv datrie
|
||||||
|
|
||||||
#
|
#
|
||||||
# System Configuration
|
# System Configuration
|
||||||
|
|||||||
@@ -33,7 +33,8 @@ export DEBIAN_FRONTEND=noninteractive #DOCS:
|
|||||||
postgresql-server-dev-12 postgresql-12-postgis-3 \
|
postgresql-server-dev-12 postgresql-12-postgis-3 \
|
||||||
postgresql-contrib-12 postgresql-12-postgis-3-scripts \
|
postgresql-contrib-12 postgresql-12-postgis-3-scripts \
|
||||||
php php-pgsql php-intl libicu-dev python3-dotenv \
|
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
|
# System Configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user