Date: Tue, 29 Jun 2004 15:03:25 -0600 (MDT) From: Mike Brown <mike@skew.org> To: freebsd-ports@freebsd.org Subject: distutils 'setup.py config' support for bsd.python.mk Message-ID: <200406292103.i5TL3PrY042366@chilled.skew.org>
next in thread | raw e-mail | index | archive | help
Python's distutils supports a config target for the setup.py script, in addition to build and install. That is, in order to build a python application, one might have to do python setup.py config argfoo argbar python setup.py build argbaz python setup.py install argmaz bsd.python.mk currently only supports build and install. Any chance a patch like the one below (untested) can go in? --- bsd.python.mk.bak Mon Jun 21 20:55:01 2004 +++ bsd.python.mk Tue Jun 22 02:23:49 2004 @@ -101,7 +101,10 @@ # # USE_PYTHON_PREFIX: Says that the port installs in ${PYTHONBASE}. # -# USE_PYDISTUTILS: Use distutils as do-build and do-install target. +# USE_PYDISTUTILS: Use distutils as do-configure, do-build and do-install targets. +# +# PYDISTUTILS_CONFIGARGS: Arguments to config with distutils. +# default: <empty> # # PYDISTUTILS_BUILDARGS: Arguments to build with distutils. # default: <empty> @@ -316,6 +319,10 @@ # py-distutils support .if defined(USE_PYDISTUTILS) +.if !target(do-configure) +do-configure: + @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} config ${PYDISTUTILS_CONFIGARGS}) +.endif .if !target(do-build) do-build: @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build ${PYDISTUTILS_BUILDARGS})
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406292103.i5TL3PrY042366>