2016-10-16 16:46:46 +02:00
|
|
|
#
|
|
|
|
# Useful variables for determining Python version and paths.
|
|
|
|
#
|
|
|
|
__python2="/usr/bin/python2"
|
|
|
|
__python3="/usr/bin/python3"
|
|
|
|
|
2016-11-17 17:37:37 +01:00
|
|
|
# set version 2 as the default Python
|
|
|
|
python_version="2"
|
|
|
|
|
2016-10-16 16:46:46 +02:00
|
|
|
if [ -x ${__python2} ]; then
|
2018-01-31 16:38:34 +01:00
|
|
|
py2_ver="2.7"
|
|
|
|
py2_lib="/usr/lib/python${py2_ver}"
|
|
|
|
py2_sitelib="${py2_lib}/site-packages"
|
|
|
|
py2_inc="/usr/include/python${py2_ver}"
|
2016-10-16 16:46:46 +02:00
|
|
|
fi
|
|
|
|
if [ -x ${__python3} ]; then
|
2018-01-31 16:38:34 +01:00
|
|
|
py3_ver="3.6"
|
|
|
|
py3_abiver="m"
|
|
|
|
py3_lib="/usr/lib/python${py3_ver}"
|
|
|
|
py3_sitelib="${py3_lib}/site-packages"
|
|
|
|
py3_inc="/usr/include/python${py3_ver}${py3_abiver}"
|
2016-10-16 16:46:46 +02:00
|
|
|
fi
|