cd spdx-diff
pip install . --break-system-packagesUse for: Quick testing, single-user systems
cd spdx-diff
# Create virtual environment
python3 -m venv .venv
# Activate
source .venv/bin/activate
# Install
pip install -e .
# Use the tool
spdx-diff --help
# When done
deactivateUse for: Development, multiple projects, safety
Note: The -e flag allows code changes to take effect immediately without reinstalling.
After installation:
# Show help
spdx-diff --help
# Compare two SPDX files, JSON output on stdout by default
spdx-diff reference.json new.json
# Compare two SPDX files, human readable output on stdout
spdx-diff reference.json new.json --human-readable
# With JSON file output generated
spdx-diff reference.json new.json --json-output results.jsonSee README.md for full documentation.
System-wide:
pip uninstall spdx-diffVirtual environment:
source .venv/bin/activate
pip uninstall spdx-diff
deactivateOr simply delete the .venv/ directory.