3.2. Installing this project¶
This project has a few major components:
docs/
documentation of the SO:UK Data Centre with a focus on software deployment.
src/souk/
a Python library under the namespace of
souk
, intended to be convenient utilities to assist interacting and using the SO:UK Data Centre resource. It is currently empty but is required to be installed in order for the documentation to be built successfully (because API doc is built automatically).
3.2.1. Installing the environment¶
3.2.1.1. Using pip
¶
python -m pip install .
# or if you want to install in editable mode
python -m pip install -e .
3.2.1.2. Using conda
/mamba
(recommended)¶
This is the method used to build the documentation here using Continuous Integration such as GitHub Pages and Read the Docs.
If you haven’t already, install
conda
ormamba
following your favorite guide.A one-liner to install
mamba
to"$HOME/.mambaforge"
is provided:curl -L https://github.com/ickc/bootstrapping-os-environments/raw/master/install/mamba.sh | bash
Install the environment
mamba env create -f environment.yml # or using conda conda env create -f environment.yml
Activating the environment
conda activate soukdc
Install this project
python -m pip install --no-dependencies . # or if you want to install in editable mode python -m pip install --no-dependencies -e .
Note
This is exactly how the environment is prepared in GitHub Pages. See the source of .github/workflows/sphinx.yml
.