Date: Mon, 03 Nov 2003 23:39:12 +0000 From: "Lee Harr" <missive@hotmail.com> To: freebsd-ports@freebsd.org Subject: Re: Can't build psycopg with PYTHON_VERSION=python2.1 (for zope) Message-ID: <BAY2-F67rnzWGTIJDdp00020a52@hotmail.com>
next in thread | raw e-mail | index | archive | help
>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@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! Does not look like a general fix, but maybe someone with a better idea how this all fits together could make it work. In the meantime if you need psycopg with zope you can use this method. _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY2-F67rnzWGTIJDdp00020a52>