diff options
author | jmc <jmc@pkgsrc.org> | 2001-10-29 05:45:09 +0000 |
---|---|---|
committer | jmc <jmc@pkgsrc.org> | 2001-10-29 05:45:09 +0000 |
commit | 0a0600ae1f575e451d5c03dbe17a5ecfaf8dbc98 (patch) | |
tree | b87a571224b85e671de89ade9fb8128ab065d934 /lang | |
parent | 3f4dcce89e91fafc13d0eed96ae56ad6e02b24fe (diff) | |
download | pkgsrc-0a0600ae1f575e451d5c03dbe17a5ecfaf8dbc98.tar.gz |
Don't execute the \!= vars unless $PYTHONBIN exists.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/extension.buildlink.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/python/extension.buildlink.mk b/lang/python/extension.buildlink.mk index 2a7d600b9a0..976b5d5c332 100644 --- a/lang/python/extension.buildlink.mk +++ b/lang/python/extension.buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: extension.buildlink.mk,v 1.1 2001/09/25 17:36:44 drochner Exp $ +# $NetBSD: extension.buildlink.mk,v 1.2 2001/10/29 05:45:09 jmc Exp $ .include "../../mk/bsd.prefs.mk" @@ -75,10 +75,12 @@ IGNORE="${PKGNAME} needs dynamic loading" .endif .endif +.if exists(${PYTHONBIN}) PYINC!= ${PYTHONBIN} -c "import distutils.sysconfig; \ print distutils.sysconfig.get_python_inc(0, \"\")" PYSITELIB!= ${PYTHONBIN} -c "import distutils.sysconfig; \ print distutils.sysconfig.get_python_lib(0, 0, \"\")" +.endif .if defined(PYDISTUTILSPKG) PYSETUP?= setup.py |