Installation
Path variables used below:
- $INSTALL_FOLDER (i.e. where CKAN is installed), e.g. /usr/lib/ckan/default
- $CONFIG_FILE, e.g. /etc/ckan/default/development.ini
Pre-install setup¶
This package depends on ckanext-dcat==1.3.0, but since that isn't available on PyPI it's not listed in the package dependencies.
Install it with:
pip install git+https://github.com/ckan/ckanext-dcat@v1.3.0#egg=ckanext-dcat
Installing from PyPI¶
pip install ckanext-nhm
Installing from source¶
-
Clone the repository into the
srcfolder:cd $INSTALL_FOLDER/src git clone https://github.com/NaturalHistoryMuseum/ckanext-nhm.git -
Activate the virtual env:
. $INSTALL_FOLDER/bin/activate -
Install via pip:
pip install $INSTALL_FOLDER/src/ckanext-nhm
Installing in editable mode¶
Installing from a pyproject.toml in editable mode (i.e. pip install -e) requires setuptools>=64; however, CKAN 2.9 requires setuptools==44.1.0. See our CKAN fork for a version of v2.9 that uses an updated setuptools if this functionality is something you need.
Post-install setup¶
-
Add 'nhm' to the list of plugins in your
$CONFIG_FILE:ckan.plugins = ... nhm -
Install
lesscglobally:npm install -g "less@~4.1"