Pin scancode version (#17602)
This commit is contained in:
parent
1dd37f868b
commit
734485a27e
1 changed files with 5 additions and 2 deletions
|
@ -2,12 +2,15 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
# https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#installation-as-a-library-via-pip
|
||||
# Install instructions: https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#installation-as-a-library-via-pip
|
||||
|
||||
# See latest release at https://github.com/nexB/scancode-toolkit/releases
|
||||
SCANCODE_VERSION="32.0.8"
|
||||
|
||||
pyEnvPath="/tmp/scancode-env"
|
||||
python3 -m venv $pyEnvPath
|
||||
source $pyEnvPath/bin/activate
|
||||
pip install scancode-toolkit
|
||||
pip install scancode-toolkit==$SCANCODE_VERSION
|
||||
deactivate
|
||||
|
||||
# Setup a script which executes scancode in the virtual environment
|
||||
|
|
Loading…
Reference in a new issue