Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2014 11:35:18 -0300
From:      William Grzybowski <wg@freebsd.org>
To:        Richard Kuhns <rjk@wintek.com>
Cc:        freebsd-python@freebsd.org
Subject:   Re: Trying to install psycopg2 for 2.7 & 3.4
Message-ID:  <CAHtVNLP1GW1wYrdnAbQwqJ_FJfOWUkeUefYCBHTv_i=1qGHAGQ@mail.gmail.com>
In-Reply-To: <5433F667.4090109@wintek.com>
References:  <5433F667.4090109@wintek.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Can you try the following patch?
http://sprunge.us/HMJb

On Tue, Oct 7, 2014 at 11:19 AM, Richard Kuhns <rjk@wintek.com> wrote:
> Hello,
>
> I'm finally trying to port a fair number of python scripts from v2 to
> v3. I've already installed py-psycopg2 for v3.4, but when I then try to
> install it for v2.7 I get:
>
> ===>  Checking if py27-psycopg2 already installed
> ===>   Registering installation for py27-psycopg2-2.5.3
> pkg-static: py27-psycopg2-2.5.3 conflicts with py34-psycopg2-2.5.3
> (installs files into the same place).  Problematic file:
> /usr/local/share/doc/py-psycopg2/AUTHORS
> *** Error code 70
>
> Stop.
> make: stopped in /usr/ports/databases/py-psycopg2
>
> Will I be making a mess of things if I just delete the PORTDOCS line in
> the Makefile long enough to install py27-psycopg2?
>
> Thanks!
>
> PS I've just subscribed to freebsd-python. I didn't realize it existed
> until I started googling for this problem.
> --
> Richard Kuhns <rjk@wintek.com>     Main Number:      765-742-8428
> Wintek Corporation                 Direct:           765-269-8541
> 427 N 6th Street                   Internet Support: 765-269-8503
> Lafayette, IN 47901-2211           Consulting:       765-269-8504
> _______________________________________________
> freebsd-python@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-python
> To unsubscribe, send any mail to "freebsd-python-unsubscribe@freebsd.org"



-- 
William Grzybowski / wg
FreeBSD Ports Committer

[-- Attachment #2 --]
Index: Makefile
===================================================================
--- Makefile	(revision 369280)
+++ Makefile	(working copy)
@@ -3,6 +3,7 @@
 
 PORTNAME=	psycopg2
 PORTVERSION=	2.5.3
+PORTREVISION=	1
 CATEGORIES=	databases python
 MASTER_SITES=	http://initd.org/psycopg/tarballs/PSYCOPG-2-5/ \
 		CHEESESHOP
@@ -11,14 +12,9 @@
 MAINTAINER=	miwi@FreeBSD.org
 COMMENT=	High performance Python adapter for PostgreSQL
 
-USE_PGSQL=		yes
-USE_PYTHON=		yes
-USE_PYDISTUTILS=	yes
-PYDISTUTILS_AUTOPLIST=	yes
+USES=		pgsql python
+USE_PYTHON=	autoplist concurrent distutils
 
-DOCSDIR=	${PREFIX}/share/doc/py-psycopg2
-EXAMPLESDIR=	${PREFIX}/share/examples/py-psycopg2
-
 PORTEXAMPLES=	binary.py copy_from.py copy_to.py cursor.py dialtone.py \
 		dict.py dt.py encoding.py fetch.py lastrowid.py lobject.py \
 		mogrify.py myfirstrecipe.py notify.py simple.py somehackers.jpg \
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHtVNLP1GW1wYrdnAbQwqJ_FJfOWUkeUefYCBHTv_i=1qGHAGQ>