Skip to content

Sedpack Installation

Installation of the Sedpack Python package.

Python Package Index

All one should need to install the package from PyPI is:

Terminal window
pip install sedpack

Note that this is the latest stable version of the package. If you want the bleeding edge features install from source instead.

Installing from Source

One can always opt for installation from the source.

Development dependencies:

Clone and create a Python virtual environment:

Terminal window
git clone github.com/google/sedpack/ # Clone the repository
python3 -m venv my_env # Create Python virtual environment
source my_env/bin/activate # Activate your virtual environment
cd sedpack/ # Change directory to the cloned git repository

[optional] Install pinned Python dependencies:

Terminal window
python3 -m pip install --require-hashes -r requirements.txt

Install sedpack with development dependencies:

Terminal window
python3 -m pip install --editable '.[dev]'

[optional] Run unit-tests, none should be skipped:

Terminal window
python -m pytest

[optional] Rebuild the Rust library after a change:

Terminal window
maturin develop --release