[OE-core] [PATCH 2/2] distutils3/setuptools3-native: do not try to fetch code during do_compile
Burton, Ross
ross.burton at intel.com
Tue Jul 17 11:13:26 UTC 2018
On 17 July 2018 at 04:34, Hongxu Jia <hongxu.jia at windriver.com> wrote:
> distutils3_do_compile() {
> + NO_FETCH_BUILD=1 \
> + NO_FETCH_BUILD_HELP="Please add its native recipe to DEPENDS." \
...
> + def easy_install(self, spec, deps=False):
> ++ if os.environ.get('NO_FETCH_BUILD', None):
> ++ log.error("ERROR: Do not try to fetch `%s' for building. %s" %
> ++ (spec, os.environ.get('NO_FETCH_BUILD_HELP', '')))
Passing the help to the patch seems overkill considering we're
patching in the message in the first place. Why not just put this in
the patch itself?
> +SRC_URI_append_class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch"
Do this in setuptools.inc and you won't need to patch both recipes.
Ross
More information about the Openembedded-core
mailing list