Can't build psycopg with PYTHON_VERSION=python2.1 (for zope)
Hye-Shik Chang
perky at i18n.org
Tue Nov 4 00:51:31 PST 2003
On Mon, Nov 03, 2003 at 11:39:12PM +0000, Lee Harr wrote:
> >When I try to build database/py-psycopg after setting
> >PYTHON_VERSION=python2.1 I get this error:
> >
> >creating Makefile
> >./config.status: /usr/local/lib/pythonpython2.1/config/makesetup: not found
> >===> Building for py21-psycopg-1.1.7
> >gmake: Makefile: No such file or directory
> >gmake: *** No rule to make target `Makefile'. Stop.
> >*** Error code 2
> >
>
> I asked on the zope at zope.org list and someone posted this patch:
>
> Try patch (in /usr/ports/databases/py-psycopg directory):
> ==================================================
> --- Makefile.orig
> +++ Makefile
> @@ -30,7 +30,8 @@
> CONFIGURE_ARGS= --with-python=${PYTHON_CMD} \
> --with-postgres-libraries=${LOCALBASE}/lib \
> --with-postgres-includes=${LOCALBASE}/include \
> - --with-mxdatetime-includes=${DATETIME_INC}
> + --with-mxdatetime-includes=${DATETIME_INC} \
> + --with-python-version=2.1
> DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
> DATETIME_INC= ${PYTHON_SITELIBDIR}/mx/DateTime/mxDateTime/
> ==================================================
>
> which seems to do the trick!
Here's a generalized one:
.if ${PYTHON_REL} < 220
CONFIGURE_ARGS+= --with-python-version=2.1
.endif
Regards,
Hye-Shik =)
More information about the freebsd-ports
mailing list