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
spdx-diff reference.json new.json
# Show summary only
spdx-diff reference.json new.json --summary
# JSON output for automation
spdx-diff reference.json new.json --format 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.