> Installing psycopg2 does require development tools, while Django does 
not.  I'm not offering this as a compelling argument for anything, just an 
observation. 

The postgres-*.*-dev libraries are a requirement for both 2.0.14 and 2.5, 
so if it's possible to install 2.0.14 via the package manager then it's 
possible to pip install 2.5.

On Monday, February 16, 2015 at 7:28:16 PM UTC+11, Gert Van Gool wrote:
>
> For what it's worth, CentOS 6 (supported until November 30, 2020) ships 
> with 2.0.14. CentOS 7 has 2.5.1.
>
> -- Gert
>
> Mobile: +32 498725202
> Twitter: @gvangool <http://twitter.com/gvangool>
> Web: http://gertvangool.be
>
> On Mon, Feb 16, 2015 at 9:11 AM, Florian Apolloner <f.apo...@gmail.com 
> <javascript:>> wrote:
>
>> Core could stay at 2.4.5 and contrib.postgresql could require a newer 
>> version :)
>>
>> On Saturday, February 14, 2015 at 9:53:43 PM UTC+1, Marc Tamlyn wrote:
>>>
>>> Hi all,
>>>
>>> Related ticket - https://code.djangoproject.com/ticket/24335
>>>
>>> Django 1.8 will necessarily be the first version with a true minimum 
>>> requirement on psycopg2 version. Historically we have never documented a 
>>> required version.
>>>
>>> - The new UUIDField requires at least 2.0.9
>>> - Some code which is currently contained in the backend, not in 
>>> contrib.postgres, but I think only relates to arrays of 
>>> (Generic)IPAddressFields requires 2.4.5. As yet I have not tried moving 
>>> this compat code so it only runs if contrib.postgres installed.
>>> - Range fields (in contrib.postgres) require 2.5
>>> - There may be other things I'm not responsible for I don't know about, 
>>> with different version requirements.
>>>
>>> Release history for psycopg2:
>>> - 2.0.9 is extremely old (date unknown)
>>> - 2.4.5 was released in March 2012
>>> - 2.5 was released in April 2013
>>> - 2.6 was released this month (Feb 2015)
>>>
>>> According to Claude, some distros have a python-psycopg2 package which 
>>> is still on 2.4.5 (or maybe older?).
>>>
>>> We have several options:
>>> - Ensure as much as possible works with old versions of psycopg2 by 
>>> shuffling code around and/or using conditional imports.
>>> - Making sure everything *outside contrib* doesn't require newer 
>>> psycopg2 that 2.0.9, and making contrib.postgres require 2.5. This may not 
>>> be possible, but I think it should be.
>>> - Change nothing but docs, so outside contrib requires 2.4.5, 
>>> contrib.postgres requires 2.5.
>>> - Just document that Django 1.8+ needs psycopg2 2.5 (pip install it...)
>>>
>>> The latter would be my preferred option, but then I've never understood 
>>> the argument for distro packages instead of pip. In any case, I feel that 
>>> any distro not supporting a two year old version of psycopg2 is unlikely to 
>>> be distributing a brand new version of Django.
>>>
>>> As far as I know we have no official policy on dependencies like this 
>>> (we don't have many). 
>>>
>>> Marc
>>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-develop...@googlegroups.com <javascript:>.
>> To post to this group, send email to django-d...@googlegroups.com 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/django-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-developers/dbde195e-39e8-438c-a30d-f95911e1b5ee%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-developers/dbde195e-39e8-438c-a30d-f95911e1b5ee%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/dc3f4984-ef1e-4945-8e37-28faa36df908%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to