[Qgis-developer] Python 2.6 and QGIS version

Alex Mandel tech_dev at wildintellect.com
Tue Feb 17 12:12:03 PST 2015


On 02/17/2015 12:01 PM, Andre Joost wrote:
> Am 17.02.2015 um 20:10 schrieb Alex Mandel:
>> On 02/17/2015 10:15 AM, Marc Ducobu wrote:
>>>
>>>
>>>> Am 17.02.2015 um 16:37 schrieb Marc Ducobu:
>>>>> /  Hello QGIS devs,
>>>> />/
>>>> />/  I think that QGIS contains it own python version. My QGIS 2.6 has
>>>> the
>>>> />/  2.7.9 version of python. Which version of QGIS has the 2.6
>>>> version of
>>>> />/  python ?
>>>> /
>>>> QGIS 1.8 Lisboa is the oldest version I have running, and that had
>>>> already Python 2.7. I guess you would not like to work with versions
>>>> older than that.
>>>>
>>>> Greetings,
>>>> André Joost
>>> Thanks a lot for the response.
>>>
>>> This is very strange because I saw on a mac a QGIS 2.0 with python 2.6
>>> in the QGIS console. Maybe it depends on which version of python is
>>> installed during the installation ?
>>>
>>> Greetings,
>>>
>>> Marc
>>>
>>
>> QGIS on Mac does not contain it's own python. It uses the system default
>> python. Only on Windows do we include python as the OS provides none.
>>
>> That said, is the real question, at which version did we move to only
>> Python 2.7+ working?
>>
> According to this ticket: https://trac.osgeo.org/osgeo4w/ticket/219
> Osgeo4w moved from Python 2.5 to 2.7 three years ago.
> 
> https://trac.osgeo.org/osgeo4w/wiki/RequiresPython mentiones QGIS 1.7.3
> as stable and 1.8.0 as dev version at that time.
> 
> HTH,
> André Joost

That does not mean it won't compile against 2.6 though. The question is
when was the Python API modified in a way that 2.6 no longer works.
Finding out the last release for a Mac OS that had 2.6 is probably the
best indicator.

http://www.kyngchaos.com/software/archive

Makes me think OS X 10.6 (I think 10.7 had python 2.7), so any version
of QGIS for 10.6 probably still worked with python 2.6.

Or a dev who knows the Python api can tell us when and if python 2.6
compatibility was broken.

Thanks,
Alex



More information about the Qgis-developer mailing list