diff options
author | jdolecek <jdolecek> | 2003-05-09 09:24:17 +0000 |
---|---|---|
committer | jdolecek <jdolecek> | 2003-05-09 09:24:17 +0000 |
commit | 0d1a41a8ba54522379d0725a0aad518400c09f49 (patch) | |
tree | 03ac788ba3640f0f2cffca27de592f71cace16ec /lang/python | |
parent | 0fcdfdbdc548e23b88e4b1bbd8b5be03b36a1154 (diff) | |
download | pkgsrc-0d1a41a8ba54522379d0725a0aad518400c09f49.tar.gz |
some packages (e.g. py-wxWindows 2.4.0.7) have the Python setup.py
in subdirectory and need to execute setup.py in that directory, but
still need WRKSRC set to the base directory for configure/patch targets
to handle this, add PYSETUPSUBDIR variable (default empty), and
change do-build+do-install targets to use working directory
${WRKSRC}/${PYSETUPSUBDIR} when executing setup.py
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/extension.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk index 57eb658c474..86d225db4c9 100644 --- a/lang/python/extension.mk +++ b/lang/python/extension.mk @@ -1,4 +1,4 @@ -# $NetBSD: extension.mk,v 1.2 2002/12/07 02:38:58 schmonz Exp $ +# $NetBSD: extension.mk,v 1.3 2003/05/09 09:24:17 jdolecek Exp $ # derive a python version from the package name if possible .if defined(PKGNAME_REQD) @@ -18,13 +18,14 @@ PYSETUP?= setup.py PYSETUPBUILDARGS?= #empty PYSETUPINSTALLARGS?= #empty PY_PATCHPLIST?= yes +PYSETUPSUBDIR?= #empty do-build: - (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \ + (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \ ${PYSETUP} ${PYSETUPBUILDARGS} build) do-install: - (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \ + (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \ ${PYSETUP} ${PYSETUPINSTALLARGS} install) .endif |