6278371eaa
Right now dib-python works by trying to find any python on a system in an order of precedence. A much better way is if we are explicit about the python we intend to be there which will allow us to make better decisions in other elements (such as allowing for package-installs to take into account DIB_PYTHON_VERSION) as well as allow for users to specify a preferred python version. Co-Authored-By: Adam Harwell <flux.adam@gmail.com> Change-Id: Ie609de51cc5fcde701296c9474e315981d9778a2
16 lines
305 B
Bash
Executable File
16 lines
305 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
python_path=$(command -v python${DIB_PYTHON_VERSION})
|
|
if [ -z "$python_path" ]; then
|
|
echo "Could not find python${DIB_PYTHON_VERSION} executable."
|
|
exit 1
|
|
fi
|
|
|
|
ln -sf $python_path /usr/local/bin/dib-python
|