Fix python3 symlink

This commit is contained in:
Bensuperpc 2021-05-07 08:40:54 +02:00
parent c7c0430029
commit 1a690e94e3
4 changed files with 5 additions and 3 deletions

View File

@ -42,3 +42,5 @@ RUN \
libtool-doc \
&& \
apt-get clean --yes
# Add symlink for compatibility
RUN ln -s /usr/bin/python3 /usr/bin/python

View File

@ -25,7 +25,7 @@ RUN \
/buildscripts/build-and-install-git.sh && \
/buildscripts/install-cmake-binary.sh $X86_FLAG && \
/buildscripts/install-liquidprompt-binary.sh && \
PYTHON=$([ -e /opt/python/cp38-cp38/bin/python ] && echo "/opt/python/cp38-cp38/bin/python" || echo "python3") && \
PYTHON=$([ -e /opt/python/cp38-cp38/bin/python ] && echo "/opt/python/cp38-cp38/bin/python" || echo "python") && \
/buildscripts/install-python-packages.sh -python ${PYTHON} && \
/buildscripts/build-and-install-ninja.sh -python ${PYTHON} && \
rm -rf /buildscripts

View File

@ -10,7 +10,7 @@
set -e
set -o pipefail
PYTHON=python3
PYTHON=python
while [ $# -gt 0 ]; do
case "$1" in
-python)

View File

@ -3,7 +3,7 @@
set -e
set -o pipefail
PYTHON=python3
PYTHON=python
while [ $# -gt 0 ]; do
case "$1" in
-python)