Matthew Watkins | 94d77dd3 | 2022-11-24 09:22:55 +0000 | [diff] [blame^] | 1 | set -exu |
| 2 | |
| 3 | ROBOT3_VENV=$(mktemp -d --suffix=robot_venv) |
| 4 | echo "ROBOT3_VENV=${ROBOT3_VENV}" >> "${WORKSPACE}/env.properties" |
puthuparambil.aditya | 056cc86 | 2021-09-14 16:47:09 +0100 | [diff] [blame] | 5 | |
| 6 | echo "Python version is: $(python3 --version)" |
| 7 | |
Matthew Watkins | 94d77dd3 | 2022-11-24 09:22:55 +0000 | [diff] [blame^] | 8 | python3 -m venv "${ROBOT3_VENV}" |
| 9 | source "${ROBOT3_VENV}/bin/activate" |
puthuparambil.aditya | 056cc86 | 2021-09-14 16:47:09 +0100 | [diff] [blame] | 10 | |
puthuparambil.aditya | 056cc86 | 2021-09-14 16:47:09 +0100 | [diff] [blame] | 11 | |
| 12 | # Make sure pip3 itself us up-to-date. |
| 13 | python3 -m pip install --upgrade pip |
| 14 | |
| 15 | echo "Installing Python Requirements" |
| 16 | python3 -m pip install -r ${WORKSPACE}/pylibs.txt |
| 17 | python3 -m pip freeze |