]> git.ipfire.org Git - thirdparty/automake.git/commit
python: support both Python 2 and 3 in py-compile
authorKarl Berry <karl@freefriends.org>
Wed, 26 Feb 2020 02:07:15 +0000 (18:07 -0800)
committerKarl Berry <karl@freefriends.org>
Wed, 26 Feb 2020 02:07:15 +0000 (18:07 -0800)
commit9ba2f0ddbcf08d4d67baffa8779abff7042a1c96
tree6550bfe687eb9fd4f13258a1991f9c171ae27dc4
parent9c65590a164099dbb483dbcd339347f45b827b29
python: support both Python 2 and 3 in py-compile

* lib/py-compile: check python major version and use imp
or importlib accordingly, plus related changes. Original
patch for Python 3 only from Gabriel Ganne at:
https://lists.gnu.org/archive/html/automake-patches/2019-07/msg00002.html
lib/py-compile