Can't build psycopg with PYTHON_VERSION=python2.1 (for zope)
Lee Harr
missive at hotmail.com
Mon Nov 3 15:39:17 PST 2003
>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!
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
More information about the freebsd-ports
mailing list