Debian Codegraph @

ci/install-python-tools.sh

raw
1 #!/bin/sh
2 #
3 # Creates a Python virtual environment in /usr/local/python and installs
4 # the modules from requirements.txt in it. These modules are required
5 # by various jobs in the CI pipeline.
6 #
7 # Note that Orca's run-time dependencies are *not* in this
8 # ci/requirements.txt - those come from system packages. The packages
9 # that this script installs are Python tools for use during the CI
10 # only, to check the code, rather than to run it.
11
12 set -eux -o pipefail
13
14 python3 -m venv --system-site-packages /usr/local/python
15 source /usr/local/python/bin/activate
16 pip3 install --upgrade pip
17 pip3 install -r ci/requirements.txt