distutils 'setup.py config' support for bsd.python.mk

Mike Brown mike at skew.org
Tue Jun 29 14:03:22 PDT 2004

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)
 .if !target(do-build)

More information about the freebsd-ports mailing list