Toooo many python-related ports has same codes for distutils. attached USE_PYDISTUTILS patch (comments are very poor. sorry) and one additional patch for net/py-snmp just as testing sample. (NetBSD has this trigger already.)
Responsible Changed From-To: freebsd-ports->tg Over to maintainer
oops sorry one mistake. ;) --- bsd.python.mk.orig2 Sun Mar 31 06:01:49 2002 +++ bsd.python.mk Sun Mar 31 06:02:01 2002 @@ -204,7 +204,7 @@ .if !target(do-install) do-install: - @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py install ${PYDISTUTILS_INSTALLARGS}) + @(cd ${INSTALL_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py install ${PYDISTUTILS_INSTALLARGS}) .endif .endif # defined(USE_PYDISTUTILS)
State Changed From-To: open->closed Committed, with minor changes. I added a PYSETUP to specify the name of the setup.py file. After checking with NetBSD's package system and following a suggestion from sobomax, I chose to not add the USE_PYDISTUTILS knob to bsd.port.mk; you'll have to define both USE_PYTHON and USE_PYDISTUTILS. I think this is only a minor inconvenience.