distutils-r1.eclass: Enable parallel builds in py3.5+
authorMichał Górny <mgorny@gentoo.org>
Tue, 17 Jul 2018 08:36:52 +0000 (10:36 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 20 Jul 2018 21:26:17 +0000 (23:26 +0200)
commit414438e131c22baf6db0c65437e28149f6f2640a
tree99747d569134559e229fb413cb101d3acf7fc4b6
parent3534565bad494c242e122889f19f25383345a696
distutils-r1.eclass: Enable parallel builds in py3.5+

Python 3.5+ introduces parallel build support in distutils.  Take
advantage of that by passing appropriate -j option.  Since distutils
does not support an equivalent of --load-average, default to the number
of CPUs+1 when unspecified.

In order to avoid breaking stable systems, introduce the new behavior
only for EAPI 7 ebuilds, or older EAPI ebuilds with unstable
implementations (Python 3.7 and PyPy 3).
eclass/distutils-r1.eclass