Re: Fix python3 deprecation warning

2020-02-19 Thread Karl Berry
I would have expected your version of python to raise a warning. Maybe it's a distribution specific change ? Looks like that way. The CentOS7 packages for python3 still provide a /usr/lib64/python3.6/imp.py without any deprecation warnings that I can discern. Not that I'm sure of anything

Re: Fix python3 deprecation warning

2020-02-19 Thread Gabriel Ganne
Hi Karl, Thanks for reviewing. I had not thought about it, but it is absolutely true that autotools should not drop python2 support. I had a look at when the imp module has been explicitly deprecated. In cpython, it has been flagged so in commit e4f41deccf94ccc798b1eb1f44657ade9a60, which is

Re: Fix python3 deprecation warning

2020-02-16 Thread Karl Berry
Hi Gabriel - back on your patch from last July (sorry): https://lists.gnu.org/archive/html/automake-patches/2019-07/msg2.html replace the imp functions with the new ones from importlib. ... -import sys, os, py_compile, imp +import sys, os, py_compile, importlib I understa

Fix python3 deprecation warning

2019-07-13 Thread Gabriel Ganne
Hi, When byte-compilig python code, automake uses a small python script wrapped around the py_compile module. This code makes use of the imp module which has been deprecated since 3.4. I'm working on the Debian stable release which provides python3.7, and in practice, this means that each time I