-derive the required Python version from the package prefix (pyXX->XX)
if possible -set a variable PYLIB to the path to the standard Python library
This commit is contained in:
parent
654df296a8
commit
b282256692
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,9 @@
|
|||
# $NetBSD: extension.buildlink.mk,v 1.5 2002/01/10 20:44:16 drochner Exp $
|
||||
# $NetBSD: extension.buildlink.mk,v 1.6 2002/01/15 17:21:25 drochner Exp $
|
||||
|
||||
# derive a python version from the package name if possible
|
||||
.if defined(USE_PYPKGPREFIX) && defined(PKGNAME_REQD)
|
||||
PYTHON_VERSION_REQD?= ${PKGNAME_REQD:C/^py([0-9]*)-.*/\1/}
|
||||
.endif
|
||||
|
||||
.include "../../lang/python/pyversion.mk"
|
||||
|
||||
|
@ -15,6 +20,8 @@ IGNORE="${PKGNAME} needs dynamic loading"
|
|||
.if exists(${PYTHONBIN})
|
||||
PYINC!= ${PYTHONBIN} -c "import distutils.sysconfig; \
|
||||
print distutils.sysconfig.get_python_inc(0, \"\")"
|
||||
PYLIB!= ${PYTHONBIN} -c "import distutils.sysconfig; \
|
||||
print distutils.sysconfig.get_python_lib(0, 1, \"\")"
|
||||
PYSITELIB!= ${PYTHONBIN} -c "import distutils.sysconfig; \
|
||||
print distutils.sysconfig.get_python_lib(0, 0, \"\")"
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue