distutils-r1.eclass: Do not apply patches if DISTUTILS_OPTIONAL is used
authorMichał Górny <mgorny@gentoo.org>
Sun, 15 May 2016 09:25:51 +0000 (11:25 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 21 May 2016 19:38:36 +0000 (21:38 +0200)
commit9f10af2ddb28388fb8150ae545f1f028ad998dce
tree87fa4ed6635413ebfedf311cf4224b5cfb6976c2
parent3b2941f2173ac2cdfd69bbcf076e6e60526542ed
distutils-r1.eclass: Do not apply patches if DISTUTILS_OPTIONAL is used

Do not apply PATCHES and user patches (either via the EAPI 6 default or
pre-EAPI 5 code) when DISTUTILS_OPTIONAL is being used. In this case,
distutils functions are usually called conditionally, in a subdirectory,
while both PATCHES and user patches are usually intended to be applied
top-level.

There is no ebuild relying on distutils-r1_src_prepare applying patches
with DISTUTILS_OPTIONAL. In fact, there are ebuilds which work around
this behavior.
eclass/distutils-r1.eclass