python-utils-r1.eclass: Block also pythonX.Y in wrappers
authorMichał Górny <mgorny@gentoo.org>
Sat, 8 Sep 2018 07:06:34 +0000 (09:06 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 18 Sep 2018 06:18:58 +0000 (08:18 +0200)
commit7f291f5759959bc338ca0b52b169871f0dccf9a9
tree019b058bf4b323cee79fef0aa4295f04ad08fb1a
parent9101d5de42e74ba7eaff612f3b751f247d664446
python-utils-r1.eclass: Block also pythonX.Y in wrappers

Improve the wrapper blocking logic to block specific Python versions
as well rather than just 2/3.  In other words, for eselected pythonX.Y
both pythonZ (Z = X^1) and python*.* (!= X.Y) will be blocked.
Hopefully this will catch more build systems that hardcode Python
versions rather than respecting what we're giving them.

This will work only for build systems respecting PATH.  Build systems
(and ebuilds) using /usr/bin path directly will still be able to use
other Python versions.
eclass/python-utils-r1.eclass