Installing
Install locally
Prerequisites
Install bubblewrap (sandboxing tool)
Install strace (file access tracking)
activated Python virtual environment such as miniconda or virtualenv, Python Version 3.10 or higher.
Install PipCanary
pip install pipcanary
Test installation
pipcanary --help
Install in Container
Prerequisites
Docker from your Linux distribution or Docker Desktop.
see: https://github.com/sebastian-kuebeck/pipcanary/tree/main/examples/ci-cd/
Build container
docker build -t pipcanary-cicd .
Test installation
Create shared directory and sample requirements file
mkdir -p shared
cat << END > shared/requirements.txt
Werkzeug<=3.1.7
click<=8.3.1
flask
pip==26.1
END
Run container
docker run --privileged -v "$(PWD)/shared:/var/shared" pipcanary-cicd
From Source
Prerequisites
Docker from your Linux distribution or Docker Desktop.
git distributed version control system
Python Version >= 3.10
activated Python virtual environment such as miniconda or virtualenv
Download
git clone https://github.com/sebastian-kuebeck/pipcanary
cd pipcanary
pip install -r requirements-dev-locked.txt
Test (optional)
Run unit tests:
make test
Build wheel
make dist
If all goes well, the pipcanary wheel
file
will be in the dist directory.
It’s named dist/pipcanary-<version>-py3-none-any.whl
Install wheel
pip install dist/pipcanary-<version>-py3-none-any.whl