xbps-src: introduce python_version
This commit is contained in:
parent
a28fd5497d
commit
29c37543cf
4 changed files with 13 additions and 1 deletions
|
@ -4,6 +4,9 @@
|
|||
__python2="/usr/bin/python2"
|
||||
__python3="/usr/bin/python3"
|
||||
|
||||
# set version 2 as the default Python
|
||||
python_version="2"
|
||||
|
||||
if [ -x ${__python2} ]; then
|
||||
py2_ver="$(${__python2} -c 'import sys; print(sys.version[:3])')"
|
||||
py2_lib="$(${__python2} -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib(0, 1))')"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue