diff --git a/science/py-dlib/Makefile b/science/py-dlib/Makefile index 22719cddc1c7..b56702836b8b 100644 --- a/science/py-dlib/Makefile +++ b/science/py-dlib/Makefile @@ -49,4 +49,12 @@ AVX_VARS_OFF= avxargs="--no USE_AVX_INSTRUCTIONS" PYDISTUTILS_BUILDARGS= --set BOOST_PYTHON_SUFFIX:STRING=${PYTHON_SUFFIX} ${X11ARGS} ${JPEGARGS} ${PNGARGS} ${GIFARGS} ${SQLITEARGS} ${BLASLAPACKARGS} ${AVXARGS} ${BLASLAPACK} -.include +.include + +.if ${FLAVOR} == py27 +PLIST_SUB+= PYTHON2="" PYTHON3="@comment " +.else +PLIST_SUB+= PYTHON2="@comment " PYTHON3="" +.endif + +.include diff --git a/science/py-dlib/pkg-plist b/science/py-dlib/pkg-plist index cca765735f7f..6dd59d547748 100644 --- a/science/py-dlib/pkg-plist +++ b/science/py-dlib/pkg-plist @@ -1,3 +1,5 @@ %%PYTHON_SITELIBDIR%%/dlib/__init__.py -%%PYTHON_SITELIBDIR%%/dlib/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc -%%PYTHON_SITELIBDIR%%/dlib/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON2%%%%PYTHON_SITELIBDIR%%/dlib/__init__.pyc +%%PYTHON2%%%%PYTHON_SITELIBDIR%%/dlib/__init__.pyo +%%PYTHON3%%%%PYTHON_SITELIBDIR%%/dlib/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON3%%%%PYTHON_SITELIBDIR%%/dlib/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc