scons-utils.eclass: Provide proper Python API for EAPI 7
authorMichał Górny <mgorny@gentoo.org>
Thu, 10 May 2018 17:28:47 +0000 (19:28 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 13 Jun 2018 07:23:57 +0000 (09:23 +0200)
commitd8c6b0ea53bbf31a1e728054e5a9b3a2d7fd2c85
treec5de183e389f1f4a17b1af6baf271dc2010bf593
parent062f9c92d31e03d49c1ade71f5b62c4eeb12fdbc
scons-utils.eclass: Provide proper Python API for EAPI 7

Provide a proper multi-impl Python support for scons-utils in EAPI 7,
to account for new versions of dev-util/scons (3.0.1-r100+, to be
committed) that support Python 3 and break SConstruct files using
Python 2 constructs.

Combining scons-utils with python-any-r1 and python-single-r1 is added
retroactively for older EAPIs as well, with fallback to Python 2.7.
The new (hard-to-use) API for python-r1 is specific to EAPI 7 since it
requires adding explicit BDEPEND.

The new use of the eclass is described on the wiki page, along with
series of examples covering different use cases:
https://wiki.gentoo.org/wiki/Project:Python/scons-utils_integration
eclass/scons-utils.eclass