lang/python: add show-all-pyversion target

When devel/py-flake8 is built with PYTHON_VERSION_DEFAULT=27, it
nevertheless depends on py37-test-runner-5.2. This is surprising, and to
help researching this issue, all Python-related variables can be listed
using "bmake show-all-pyversion".
This commit is contained in:
rillig 2020-03-15 14:28:36 +00:00
parent 88505c0b8a
commit e9b87389e2

View file

@ -1,4 +1,4 @@
# $NetBSD: pyversion.mk,v 1.130 2019/10/15 16:50:10 adam Exp $
# $NetBSD: pyversion.mk,v 1.131 2020/03/15 14:28:36 rillig Exp $
# This file determines which Python version is used as a dependency for
# a package.
@ -213,4 +213,24 @@ CMAKE_ARGS+= -DPYTHON_INCLUDE_PATH:PATH=${BUILDLINK_DIR}/${PYINC}
CMAKE_ARGS+= -DPYTHON_EXECUTABLE:FILEPATH=${PYTHONBIN}
.endif
_VARGROUPS+= pyversion
_USER_VARS.pyversion= PYTHON_VERSION_DEFAULT
_PKG_VARS.pyversion= \
PYTHON_VERSIONS_ACCEPTED PYTHON_VERSIONS_INCOMPATIBLE \
PYTHON_SELF_CONFLICT PYTHON_FOR_BUILD_ONLY USE_CMAKE
_SYS_VARS.pyversion= \
PYTHON_VERSION_REQD PYPACKAGE PYVERSSUFFIX PYPKGSRCDIR \
PYPKGPREFIX PYTHONBIN PYTHONCONFIG PY_COMPILE_ALL \
PY_COMPILE_O_ALL PYINC PYLIB PYSITELIB CMAKE_ARGS
_USE_VARS.pyversion= \
PKGNAME_REQD PKGNAME_OLD LOCALBASE PREFIX BUILDLINK_DIR PKGNAME
_DEF_VARS.pyversion= \
CONFLICTS MULTI PLIST_VARS BUILDLINK_API_DEPENDS.${PYPACKAGE} \
PYDEPENDENCY PLIST.py2x PLIST.py3x PTHREAD_OPTS TOOL_DEPENDS \
TEST_DEPENDS BUILDLINK_DEPMETHOD.python PRINT_PLIST_AWK ALL_ENV \
_PYTHON_VERSIONS_ACCEPTED _PYTHON_VERSION
_IGN_VARS.pyversion= _PYTHON_*
_LISTED_VARS.pyversion= *_ARGS
_SORTED_VARS.pyversion= *_DEPENDS *_ENV
.endif # PYTHON_PYVERSION_MK