diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2003-05-09 09:24:17 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2003-05-09 09:24:17 +0000 |
commit | a796119e39c1483ae9a739a4dee8965409ad221f (patch) | |
tree | 03ac788ba3640f0f2cffca27de592f71cace16ec /lang/python/extension.mk | |
parent | 71394334e633ed0e61d5f0c919f873ef1a294bd0 (diff) | |
download | pkgsrc-a796119e39c1483ae9a739a4dee8965409ad221f.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/extension.mk')
-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 |