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))')"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
unset -v pkgname version revision short_desc homepage license maintainer
|
||||
unset -v only_for_archs distfiles checksum build_style nocross broken
|
||||
unset -v configure_script configure_args wrksrc build_wrksrc create_wrksrc
|
||||
unset -v make_cmd make_build_args make_install_args make_build_target make_install_target stackage
|
||||
unset -v make_cmd make_build_args make_install_args make_build_target make_install_target python_version stackage
|
||||
unset -v patch_args disable_parallel_build keep_libtool_archives
|
||||
unset -v reverts subpackages makedepends hostmakedepends depends restricted
|
||||
unset -v nopie build_options build_options_default bootstrap repository reverts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue