← Back to team overview

kicad-developers team mailing list archive

Re: Supported Python Versions

 

Even 3.4 is marked as EOL by Python:
https://devguide.python.org/#status-of-python-branches

-Jon

On Fri, May 24, 2019 at 9:55 AM Ian McInerney <Ian.S.McInerney@xxxxxxxx>
wrote:

> Wayne,
>
> That makes sense. I run Fedora so I have 3.6 available to me currently. In
> this case adding in support for 3.3 isn't insurmountable since it only adds
> 1 additional elif statement. I am hesitant to suggest bumping the python
> version for 5.1.3 (which is what this bug is targeted to), but for 6.0 it
> might make sense to bump the version and clean up the code if possible.
>
> -Ian
>
> On Fri, May 24, 2019 at 12:57 PM Wayne Stambaugh <stambaughw@xxxxxxxxx>
> wrote:
>
>> Ian,
>>
>> I typically use Debian stable (Stretch) as a benchmark for dependency
>> versions which has version 3.5.3 of Python3.  Seeing that Debian old
>> stable (Jessie) has Python3 version 3.4.2 and Ubuntu 16.04 (xenial) is
>> 3.5.1, I would think 3.4 would be an acceptable minimum version of
>> Python 3 to support.  Right now KiCad requires version 3.3 or greater
>> but I'm fine with bumping it to >=3.4 if it saves us a bunch of
>> conditional python version code.  There is already enough of that with
>> python2/3.
>>
>> Cheers,
>>
>> Wayne
>>
>> On 5/24/19 6:02 AM, Ian McInerney wrote:
>> > I am in the process of fixing a bug related to the importing of the
>> > plugins (https://bugs.launchpad.net/kicad/+bug/1828595), and the root
>> > cause is a change that was made between python 2 and 3 in which module
>> > contains the reload function.
>> >
>> > Unfortunately it isn't as simple for the python 3 side of things, since
>> > the reload() function has been moved around in both 3.2 and 3.4, so the
>> > current solution I have would only support python >3.4 and also python
>> > 2. This leads to the question, what is the minimum python version that
>> > kicad requires the user to have installed? Do we need to add in the
>> > support for versions between 3.0 and 3.4? Doing this seems like it will
>> > complicate the code, since we will essentially be left with if blocks to
>> > import/call functions based on every conceivable python version.
>> >
>> > -Ian
>> >
>> > _______________________________________________
>> > Mailing list: https://launchpad.net/~kicad-developers
>> > Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> > Unsubscribe : https://launchpad.net/~kicad-developers
>> > More help   : https://help.launchpad.net/ListHelp
>> >
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>

References