Skip to content

Installation

Version: 0.9.8.1

Installation requires system prerequisites, Python environment setup, and dependency installation. This guide covers both standard user and developer installations.

  • Git: required for repository access.
  • C++ build tools: the roughpy library provides pre-compiled wheels for most platforms, but build tools may be required.

Linux (Debian/Ubuntu):

Terminal window
sudo apt-get update
sudo apt-get install build-essential python3-dev

macOS:

Terminal window
xcode-select --install

Windows: install “Microsoft C++ Build Tools” via Visual Studio with the “Desktop development with C++” workload.

  • Python: 3.10+ required.
  • pip: ensure up to date (included with Python).
  1. Clone the repository

CreativeDynamics is hosted in a private Git repository. Obtain access through your organisation.

Recommended access methods:

  • SSH access (your GitHub account key, or a deploy key managed by an administrator)
  • An internal mirror or package index managed by your platform team

Do not embed credentials in Git remote URLs.

Clone (example using SSH):

Terminal window
git clone git@github.com:tandpds/CreativeDynamics.git
cd CreativeDynamics
  1. Create and activate a virtual environment
Terminal window
python -m venv .venv
# Linux/macOS:
source .venv/bin/activate
# Windows (Command Prompt):
# .\venv\Scripts\activate.bat
# Windows (PowerShell):
# .\venv\Scripts\Activate.ps1
  1. Install dependencies
Terminal window
pip install --upgrade pip
pip install .

Installs core dependencies defined in pyproject.toml.

CreativeDynamics provides optional dependency groups for different use cases:

Terminal window
# With AI-generated narrative reports (requires OpenAI API key)
pip install ".[ai]"
# Just testing dependencies
pip install ".[test]"
# Just documentation dependencies
pip install ".[docs]"
# For development (includes testing, docs, linting, and AI)
pip install ".[dev]"

For contributors, complete the standard installation then:

  1. Install in editable mode with dev dependencies
Terminal window
pip install -e ".[dev]"
  1. Set up pre-commit hooks
Terminal window
pre-commit install