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 \ libtool-doc \
&& \ && \
apt-get clean --yes 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/build-and-install-git.sh && \
/buildscripts/install-cmake-binary.sh $X86_FLAG && \ /buildscripts/install-cmake-binary.sh $X86_FLAG && \
/buildscripts/install-liquidprompt-binary.sh && \ /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/install-python-packages.sh -python ${PYTHON} && \
/buildscripts/build-and-install-ninja.sh -python ${PYTHON} && \ /buildscripts/build-and-install-ninja.sh -python ${PYTHON} && \
rm -rf /buildscripts rm -rf /buildscripts

View File

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

View File

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