From fac5e5a4540ffc79138b94ce8edfd329a209b250 Mon Sep 17 00:00:00 2001 From: Samruddhi Khandale Date: Mon, 13 Jun 2022 22:27:30 +0000 Subject: python: fix condition when version=none --- src/python/install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/python') diff --git a/src/python/install.sh b/src/python/install.sh index 5bc3a18..1e3875b 100755 --- a/src/python/install.sh +++ b/src/python/install.sh @@ -276,7 +276,6 @@ install_from_source() { make install cd /tmp rm -rf /tmp/python-src ${GNUPGHOME} /tmp/vscdc-settings.env - chown -R ${USERNAME} "${INSTALL_PATH}" ln -s "${INSTALL_PATH}/bin/python3" "${INSTALL_PATH}/bin/python" ln -s "${INSTALL_PATH}/bin/pip3" "${INSTALL_PATH}/bin/pip" @@ -369,7 +368,7 @@ if [ "${PYTHON_VERSION}" != "none" ]; then fi # Install Python tools if needed -if [ "${INSTALL_PYTHON_TOOLS}" = "true" ]; then +if [ "${INSTALL_PYTHON_TOOLS}" = "true" ] && [ "${PYTHON_VERSION}" != "none" ]; then echo 'Installing Python tools...' export PIPX_BIN_DIR="${PIPX_HOME}/bin" export PATH="${CURRENT_PATH}/bin:${PIPX_BIN_DIR}:${PATH}" -- cgit v1.2.3