blob: 54dbce400a60f0900b5cf3e87ac446b497e1d547 [file] [log] [blame]
Matthew Watkins94d77dd32022-11-24 09:22:55 +00001set -exu
2
3ROBOT3_VENV=$(mktemp -d --suffix=robot_venv)
4echo "ROBOT3_VENV=${ROBOT3_VENV}" >> "${WORKSPACE}/env.properties"
puthuparambil.aditya056cc862021-09-14 16:47:09 +01005
6echo "Python version is: $(python3 --version)"
7
Matthew Watkins94d77dd32022-11-24 09:22:55 +00008python3 -m venv "${ROBOT3_VENV}"
9source "${ROBOT3_VENV}/bin/activate"
puthuparambil.aditya056cc862021-09-14 16:47:09 +010010
puthuparambil.aditya056cc862021-09-14 16:47:09 +010011
12# Make sure pip3 itself us up-to-date.
13python3 -m pip install --upgrade pip
14
15echo "Installing Python Requirements"
16python3 -m pip install -r ${WORKSPACE}/pylibs.txt
17python3 -m pip freeze