[SciPy-Dev] proposal to drop Python 3.6 and NumPy 1.14 / 1.15

Ralf Gommers ralf.gommers at gmail.com
Tue Aug 18 08:06:07 EDT 2020


On Tue, Aug 18, 2020 at 3:58 AM Tyler Reddy <tyler.je.reddy at gmail.com>
wrote:

>
> I can pretty much guarantee that we will take on a non-zero maintenance
> burden if we support an additional Python version. Devs spend a fair bit of
> time just "keeping CI green" so that new contributions/fixes can flow in
> without confusion/delays, and that is compounded by the backport CI and
> separate wheels repo CI.
>

Yep, this really is the main argument.


> If you convince Ralf et al. that we should go against the NEP I don't
> really mind, but it is going to cost us time that could be spent on other
> things.
>
> On Mon, 17 Aug 2020 at 06:59, Bennet Fauber <bennet at umich.edu> wrote:
>
>> Boy, yes, Ilhan, I agree.  Too many different roles in my head!
>>
>> Just to be clear, I also am not concerned about deprecating older
>> NumPy, only the base Python version, and specifically 3.6.  It looks
>> like the latest fully released NumPy supports Python 3.6.  In my Linux
>> world, we still have a preponderance of RedHat/CentOS 7 installed, and
>> it does not easily provide Python 3.7:  python36 is available from
>> EPEL.  Our most prevalent Ubuntu is 16.04.  We will probably jump to
>> 20.04 next calendar year.
>>
>
`pip install scipy --user`, or whatever you do on an old CentOS
machine/cluster, is still going to work. As is `apt-get install scipy`. And
it will get you the latest supported SciPy for that Python version, which
is pretty good. All you're missing out on is a few new features and bug
fixes in 1.6.0. If you discover you need those, it's time to learn Conda so
it's trivial to install a newer Python version.


>> I had not realized that Python itself was going to a 12-month release
>> cycle.  That seems to me destructive and predicated on the notion that
>> software is disposable.
>>
>
I have to admit I'm not a fan, but that's because new Python versions
typically bring us new burdens and few or no new features we need. Having
bug fixes propagate a bit faster is the upside.


>> I think there is a very good reason why many Linux distributions have
>> separate distributions for longer term stability and more up-to-date
>> features.  Red Hat and Fedora, Ubuntu and LTS, Debian Stable and
>> Unstable.  Is that viable with SciPy, NumPy, where only the bug fixes
>> get backported, which might reduce the cost of longer maintenance
>> (except for the wheels, as noted)?
>>
>> Thanks for the discussion on this, no matter where it ends up.
>>
>> >
>> > On Mon, Aug 17, 2020 at 12:19 AM Evgeni Burovski <
>> evgeny.burovskiy at gmail.com> wrote:
>> >>
>> >> No objections for bumping the minimum NumPy version.
>> >> For bumping the python version.. not quite an objection, more of a
>> suggestion to consider holding it back.
>> >> I guess there are three kinds of stakeholders here:
>> >> - for end users, upgrading the python version is a fairly major
>> hassle. Three versions of python now means three years back if they switch
>> to a 12-months cadence. Three years of support is definitely on a low side
>> of things. (with my PI hat on, I can certainly relate to what Bennet was
>> saying, even if our lab has it way easier than others).
>>
>
Python 3.6 was released in Dec 2016, and we're talking about our Dec 2020
release - so 4 years. When it's actually down to 3 years we can review
again, but that's not today's decision.

>> - for the scipy devs, what exactly drives us to drop it? For 3.5 it was
>> of course the matmul operator, for 3.6 it's f-strings, what's there in 3.7
>> which makes it not fun to stay on 3.6?
>>
>
f-strings are/were not very interesting imho. If you spend all day doing
string processing yes, but for numerical code it really doesn't matter all
that much. We had two ways of doing string formatting, now we have three.

As Tyler said, it's to reduce the cost of keeping it working, and CI happy.
We can spend that time writing or reviewing new features and other
improvements instead.

Cheers,
Ralf


>> - for the RM and other packagers: how much of a hassle is it to keep an
>> older version? I realize it's more wheels to build for the scipy RM, but
>> that's fairly automated now?
>>
> >>
>> >>
>> >>
>> >> Cheers,
>> >> Evgeni
>> >>
>> >>
>> >> On Sun, Aug 16, 2020 at 6:22 PM Matti Picus <matti.picus at gmail.com>
>> wrote:
>> >> >
>> >> >
>> >> > On 8/16/20 4:23 PM, Bennet Fauber wrote:
>> >> > > This post is by way of trying to articulate some concerns from the
>> end
>> >> > > user side of things.
>> >> > >
>> >> > > It looks like NumPy 19.1 supports Python 3.6.
>> >> > >
>> >> > >> This release supports Python 3.6-3.8. Cython >= 0.29.21 needs to
>> be used when building
>> >> > >> with Python 3.9 for testing purposes.
>> >> > > https://numpy.org/devdocs/release/1.19.1-notes.html
>> >> > >
>> >> > > The section of the release notes for NumPy 1.20.0 does not contain
>> the
>> >> > > section at the top saying which versions of Python are supported.
>> >> > > (https://numpy.org/devdocs/release/1.20.0-notes.html)
>> >> > >
>> >> > > For Python itself,  I find on their releases, the 3.6.12 schedule
>> was
>> >> > >
>> >> > >      3.6.12 final: 2020-08-14 (expected)
>> >> > > https://www.python.org/dev/peps/pep-0494/#id9
>> >> > >
>> >> > > but does not seem to have made it, and Python 3.6.11 was released
>> June
>> >> > > 27, 2020.  The Python plans for 3.6.13 and beyond are Security
>> fixes
>> >> > > only, as needed, until 2021-12.  That seems, from my user
>> perspective,
>> >> > > a better date for deprecation and not too far from the just
>> proposed
>> >> > > one.
>> >> > >
>> >> > > Acknowledging the additional burden of 'supporting' older versions
>> of
>> >> > > Python, still it would seem that matching NumPy is not a bad thing.
>> >> > >
>> >> > >  From a strictly consumer perspective, where much of the work is
>> >> > > getting all of the non-NumPy and non-SciPy functionality to work
>> and
>> >> > > be stable, upgrading Python can be very disruptive.  Time spent
>> >> > > getting the 'glue' around analytics to work is time we cannot
>> spend on
>> >> > > science.  There are large projects that do keep up, but they tend
>> also
>> >> > > to be funded well.  The many small labs on my campus do not have
>> >> > > funding for software development, are unlikely to ever get any, so
>> any
>> >> > > work required to fix software because of updates comes from their
>> >> > > budget for science and from their scientists who are not as
>> proficient
>> >> > > and therefore not as efficient at adapting to a newer version of
>> >> > > Python and all the reinstallation of libraries that attends it.
>> >> > >
>> >> >
>> >> > Is there a forum where we could explore the larger question around
>> best
>> >> > practices in helping projects and teams keep their software
>> up-to-date
>> >> > through rolling updates, test suites, and documentation? A few things
>> >> > come to mind:
>> >> >
>> >> > - developing a culture of version control and tests when creating
>> >> > software, even if it is grad students racing towards their degrees
>> >> >
>> >> > - freezing environments in images, which is a whole discipline unto
>> >> > itself, and needed for reproducible science
>> >> >
>> >> > - offloading the task of maintaining computing environments using
>> things
>> >> > like Jupyter Hub or other web-based services
>> >> >
>> >> >
>> >> > FWIW, python is changing their release cadence from once every 18
>> months
>> >> > to once every 12 months[1] so it is likely this problem will get
>> harder.
>> >> >
>> >> > Matti
>> >> >
>> >> > [1] https://www.python.org/dev/peps/pep-0602/#annual-release-cadence
>> >> > _______________________________________________
>> >> > SciPy-Dev mailing list
>> >> > SciPy-Dev at python.org
>> >> > https://mail.python.org/mailman/listinfo/scipy-dev
>> >> _______________________________________________
>> >> SciPy-Dev mailing list
>> >> SciPy-Dev at python.org
>> >> https://mail.python.org/mailman/listinfo/scipy-dev
>> >
>> > _______________________________________________
>> > SciPy-Dev mailing list
>> > SciPy-Dev at python.org
>> > https://mail.python.org/mailman/listinfo/scipy-dev
>> _______________________________________________
>> SciPy-Dev mailing list
>> SciPy-Dev at python.org
>> https://mail.python.org/mailman/listinfo/scipy-dev
>>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at python.org
> https://mail.python.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20200818/d8dc14c2/attachment-0001.html>


More information about the SciPy-Dev mailing list