Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2003 17:51:29 +0900
From:      Hye-Shik Chang <perky@i18n.org>
To:        Lee Harr <missive@hotmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Can't build psycopg with PYTHON_VERSION=python2.1 (for zope)
Message-ID:  <20031104085129.GA25486@i18n.org>
In-Reply-To: <BAY2-F67rnzWGTIJDdp00020a52@hotmail.com>
References:  <BAY2-F67rnzWGTIJDdp00020a52@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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 =)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031104085129.GA25486>