public inbox for [email protected]  
help / color / mirror / Atom feed
Relax version dependency on psycopg2
2+ messages / 2 participants
[nested] [flat]

* Relax version dependency on psycopg2
@ 2017-05-09 11:28  Magnus Hagander <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Magnus Hagander @ 2017-05-09 11:28 UTC (permalink / raw)
  To: pgadmin-hackers

Right now psycopg2 is required to be exactly version 2.6.2, which makes it
mostly impossible to install pgadmin4 without having the postgresql C
development packages installed (since you need to rebuild psycopg2 from
source to make that work, given that few platforms ship *exactly* that
version).

I suggest just saying "2.6 or greater", which should make it work on many
more platforms.

AFAIK there aren't any other packages with similar compile requirements, so
the rest seem OK.

-- 
 Magnus Hagander
 Me: https://www.hagander.net/ <http://www.hagander.net/;
 Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/;


-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers


Attachments:

  [text/x-patch] psycopg2_version.patch (321B, 3-psycopg2_version.patch)
  download | inline diff:
diff --git a/requirements.txt b/requirements.txt
index 90ed057..deb8bde 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -27,7 +27,7 @@ MarkupSafe==0.23
 ordereddict; python_version < '2.7'
 passlib==1.6.2
 pbr==1.9.1
-psycopg2==2.6.2
+psycopg2>=2.6.2
 pycrypto==2.6.1
 pyrsistent==0.11.13
 python-dateutil==2.5.0


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Relax version dependency on psycopg2
@ 2017-05-09 11:32  Dave Page <[email protected]>
  parent: Magnus Hagander <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Dave Page @ 2017-05-09 11:32 UTC (permalink / raw)
  To: Magnus Hagander <[email protected]>; +Cc: pgadmin-hackers

Thanks, patch applied.

On Tue, May 9, 2017 at 12:28 PM, Magnus Hagander <[email protected]>
wrote:

> Right now psycopg2 is required to be exactly version 2.6.2, which makes it
> mostly impossible to install pgadmin4 without having the postgresql C
> development packages installed (since you need to rebuild psycopg2 from
> source to make that work, given that few platforms ship *exactly* that
> version).
>
> I suggest just saying "2.6 or greater", which should make it work on many
> more platforms.
>
> AFAIK there aren't any other packages with similar compile requirements,
> so the rest seem OK.
>
> --
>  Magnus Hagander
>  Me: https://www.hagander.net/ <http://www.hagander.net/;
>  Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/;
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>
>


-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-05-09 11:32 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-05-09 11:28 Relax version dependency on psycopg2 Magnus Hagander <[email protected]>
2017-05-09 11:32 ` Dave Page <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox