d1e32f80a6
Use dib-python to run package-installs using the provided python version. Automatically detect the python version for our package-installs-squash since that runs outside the chroot. Change-Id: I926022bcf8cbcd81b051026ffd5d6477650045ad
16 lines
297 B
Bash
Executable File
16 lines
297 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 python2 || command -v python3)
|
|
if [ -z "$python_path" ]; then
|
|
echo "Could not find python2 or python3 executable."
|
|
exit 1
|
|
fi
|
|
|
|
ln -s $python_path /usr/local/bin/dib-python
|