2.4 KiB
title
| title |
|---|
| Scott - Install |
Installing Scott
You can install Scott for your application using one of the following mechanisms:
Option 1: Install from a built wheel
Follow the instructions to build Scott from source. Then from the
{project-root}/dist folder, install the wheel with pip:
cd /your/application/project/root
python -m venv .venv
source .venv/bin/activate
pip install {project-root}/dist/*.whl
This assumes that your application is using a virtual environment.
Option 2: Install from a Git repository
This is the recommended approach. Scott is hosted as a Python package on a Git repository at
https://rprime.indroneel.co/termhole/scott.git
You can install directly from this repository instead of a built wheel. Use pip with the repository URL.
cd /your/application/project/root
python -m venv .venv
source .venv/bin/activate
pip install "git+https://rprime.indroneel.co/termhole/scott.git"
Using the Python build tool
If your application is managed with Python build tooling, you can declare Scott as a dependency in your app's pyproject.toml instead of installing it manually with pip.
Add the following entry under the project's dependencies:
dependencies = [
"scott @ git+https://rprime.indroneel.co/termhole/scott.git"
]
The next time you build or refresh your application's environment, Scott will be installed automatically into the active virtual environment.
cd /your/application/project/root
python -m venv .venv
source .venv/bin/activate
python -m build
OR
pip install -e .
Option 3: Install a local editable copy
Use this option when you want to modify Scott while developing against an application that depends on it.
First, clone the Scott repository to a local working directory:
cd /your/working/directory
git clone https://rprime.indroneel.co/termhole/scott.git
Then install that checkout in editable mode from your application project:
cd /your/application/project/root
python -m venv .venv
source .venv/bin/activate
pip install -e /your/working/directory/scott
This makes the installed package point to your local source tree, so changes in Scott are picked up immediately. After that, you can either build your application package or install your app in editable mode from its own project directory:
python -m build
or
pip install -e .