1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-21 23:18:13 +00:00

ci: ensure system Python 3.7 is used even if other pythons are available

This commit is contained in:
matejcik 2020-02-06 13:21:39 +01:00
parent c01d04f26e
commit 8c75c94125
2 changed files with 10 additions and 1 deletions

View File

@ -30,7 +30,7 @@ stages:
- deploy
before_script:
- command -v pipenv >/dev/null && pipenv sync
- command -v pipenv >/dev/null && pipenv sync --python=/usr/bin/python3
.core_job:
only:

View File

@ -57,6 +57,15 @@ RUN if [ "${FULLDEPS_TESTING}" = "1" ]; then \
cd Python-${PYTHON38VER}${PYTHONSUBVER}/ && ./configure && make && make install ; \
fi
# remove symlinks to newly installed pythons
RUN cd /usr/local/bin; \
rm -f 2to3; \
rm -f python3; \
rm -f python3-config; \
rm -f pydoc3; \
rm -f pip3; \
rm -f pyvenv;
# install dependencies from toolchain source build
RUN if [ "${TOOLCHAIN_FLAVOR}" = "src" ]; then \