aboutsummaryrefslogtreecommitdiff
path: root/src/python/install.sh
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-06-14 01:27:30 +0300
committerGitHub <noreply@github.com>2022-06-14 01:27:30 +0300
commitfac5e5a4540ffc79138b94ce8edfd329a209b250 (patch)
treefcc82ed8ff8df36481382d5d6fc62c8899ff8d88 /src/python/install.sh
parent78ef2ccef9d45f148b00666048592b7ad174d8e4 (diff)
python: fix condition when version=none
Diffstat (limited to 'src/python/install.sh')
-rwxr-xr-xsrc/python/install.sh3
1 files changed, 1 insertions, 2 deletions
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}"