Sedpack Installation
Installation of the Sedpack Python package.
Python Package Index
All one should need to install the package from PyPI is:
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:
- python-dev and gcc for xxhash
- Install Rust
Clone and create a Python virtual environment:
git clone github.com/google/sedpack/ # Clone the repositorypython3 -m venv my_env # Create Python virtual environmentsource my_env/bin/activate # Activate your virtual environmentcd sedpack/ # Change directory to the cloned git repository
[optional] Install pinned Python dependencies:
python3 -m pip install --require-hashes -r requirements.txt
Currently the file requirements.txt
is compiled for Linux and some
versions of PyPI packages might be different or even not existing
elsewhere. One can always recreate those:
python3 -m pip install pip-toolspython3 -m pip-compile --generate-hashes pyproject.toml > requirements_win.txtpython3 -m pip install --require-hashes -r requirements_win.txt
Currently the file requirements.txt
is compiled for Linux and some
versions of PyPI packages might be different or even not existing
elsewhere. One can always recreate those:
python3 -m pip install pip-toolspython3 -m pip-compile --generate-hashes pyproject.toml > requirements_mac.txtpython3 -m pip install --require-hashes -r requirements_mac.txt
Install sedpack with development dependencies:
python3 -m pip install --editable '.[dev]'
[optional] Run unit-tests, none should be skipped:
python -m pytest
[optional] Rebuild the Rust library after a change:
maturin develop --release