[Bug 250379] www/py-cherrypy: fails to import with lang/python38 or later

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Oct 17 04:47:02 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250379

--- Comment #6 from James French <james at french.id.au> ---
(In reply to Jan Beich from comment #5)

> Why is devel/py-contextlib2 disabled for python >= 3.8?

Officially Python 3.8+ are not on the supported versions list for contextlib2.
The last supported version is Python 3.7 see:
https://pypi.org/project/contextlib2/

It's python though, so unless it's doing something with a dropped/modified
stdlib it's not a huge surprise that it works fine.

> Why python 3.6 and 3.7 cannot use default "contextlib" instead of "contextlib2"?

After a quick code review of what that library is pulled in for (cathing an
exception), they probably can. This version of CherryPy still has Python 2
support & contextlib2 is required for that. I'll apply the patch to python >
3.2 (earliest version that shipped with contextlib) and drop contextlib2 as a
dependency for those versions.

> Maybe combine into one file and document the patch origin in the header.

Can do, I'll submit an updated patch shortly that does all of the above.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-python mailing list