diff options
author | Charlie Li <vishwin@FreeBSD.org> | 2023-03-08 23:24:47 -0500 |
---|---|---|
committer | Charlie Li <vishwin@FreeBSD.org> | 2023-03-08 23:24:47 -0500 |
commit | 8731e33283354423faea74ea96a6431d7441eaba (patch) | |
tree | 92c4c495401f76339f6bb4e2865ea7b3724f7524 /Mk/Uses/python.mk | |
parent | python.mk: use PYTHON_MAJOR_VER for Python 2/3 conditionals (diff) |
python.mk: add USE_PYTHON=cython_test
Diffstat (limited to 'Mk/Uses/python.mk')
-rw-r--r-- | Mk/Uses/python.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk index 1ed76079cbc9..901261333b87 100644 --- a/Mk/Uses/python.mk +++ b/Mk/Uses/python.mk @@ -86,6 +86,8 @@ # # cython_run - Depend on lang/cython at run-time. # +# cython_test - Depend on lang/cython for tests. +# # flavors - Force creation of flavors for Python 2 and 3 default # versions, where applicable. # @@ -307,7 +309,7 @@ _PYTHON_BASECMD= ${LOCALBASE}/bin/python _PYTHON_RELPORTDIR= lang/python # List all valid USE_PYTHON features here -_VALID_PYTHON_FEATURES= allflavors autoplist concurrent cython cython_run \ +_VALID_PYTHON_FEATURES= allflavors autoplist concurrent cython cython_run cython_test \ distutils flavors noegginfo noflavors nose nose2 \ optsuffix pep517 py3kplist pytest pytest4 pythonprefix \ unittest unittest2 @@ -585,6 +587,10 @@ BUILD_DEPENDS+= cython-${PYTHON_VER}:lang/cython@${PY_FLAVOR} RUN_DEPENDS+= cython-${PYTHON_VER}:lang/cython@${PY_FLAVOR} . endif +. if defined(_PYTHON_FEATURE_CYTHON_TEST) +TEST_DEPENDS+= cython-${PYTHON_VER}:lang/cython@${PY_FLAVOR} +. endif + . if defined(_PYTHON_FEATURE_CONCURRENT) . if !defined(_PYTHON_FEATURE_FLAVORS) && (${_PYTHON_VERSION_MINIMUM:M3*} || ${_PYTHON_VERSION_MAXIMUM:M2*}) DEV_WARNING+= "USE_PYTHON=concurrent when only one of Python 2 or 3 is supported AND not using flavors does not make any sense" |