mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 19:18:56 +00:00
ci: ensure system Python 3.7 is used even if other pythons are available
This commit is contained in:
parent
c01d04f26e
commit
8c75c94125
@ -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:
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user