spcd_python_ln
This commit is contained in:
parent
218c31ce57
commit
a4556cd22b
1 changed files with 6 additions and 6 deletions
12
spcd/main.sh
12
spcd/main.sh
|
@ -1044,7 +1044,7 @@ spcd_install_python() {
|
||||||
spcd_step_in "Install Python"
|
spcd_step_in "Install Python"
|
||||||
spcd_install_package "${SPCD_PYTHON_PACKAGE}"
|
spcd_install_package "${SPCD_PYTHON_PACKAGE}"
|
||||||
spcd_step "Link alias to command"
|
spcd_step "Link alias to command"
|
||||||
spcd_ln_python "${SPCD_PYTHON_COMMAND}"
|
spcd_python_ln "${SPCD_PYTHON_COMMAND}"
|
||||||
# venv
|
# venv
|
||||||
spcd_step_in "Virtual environment"
|
spcd_step_in "Virtual environment"
|
||||||
spcd_step "Install package"
|
spcd_step "Install package"
|
||||||
|
@ -1199,11 +1199,11 @@ spcd_install_package() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_ln_python() {
|
spcd_python_ln() {
|
||||||
spcd_ln_python__command="${1}"
|
spcd_python_ln__command="${1}"
|
||||||
if [ -n "${spcd_ln_python__command}" ]; then
|
if [ -n "${spcd_python_ln__command}" ]; then
|
||||||
echo "→ ${SPCD_PYTHON_ALIAS} → ${spcd_ln_python__command}"
|
echo "→ ${SPCD_PYTHON_ALIAS} → ${spcd_python_ln__command}"
|
||||||
ln -f -s "${spcd_ln_python__command}" \
|
ln -f -s "${spcd_python_ln__command}" \
|
||||||
"/usr/bin/${SPCD_PYTHON_ALIAS}" || exit
|
"/usr/bin/${SPCD_PYTHON_ALIAS}" || exit
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue