diff options
author | Jack Mitchell <ml@embed.me.uk> | 2020-12-08 16:03:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-10 13:40:39 +0000 |
commit | 6ca02e249440b248f9a06686dad7d0445d288b11 (patch) | |
tree | 5f93f2d8c8f5d95ad96e1ee54aecdd87370d40c6 /meta/recipes-core/coreutils | |
parent | 209bc38a46d05b6a6310e134c0ccbce144019723 (diff) | |
download | openembedded-core-contrib-6ca02e249440b248f9a06686dad7d0445d288b11.tar.gz |
distutils3: allow setup.py to be run from a different directory to ${S}
Sometimes setup.py can be buried deep in a source tree. This has
traditionally been solved with setting S to the subdirectory in
the source. However with the new pseudo changes, some python modules
make changes to files beneath ${S}, for example:
S = "${WORKDIR}/git/python/pythonmodule"
then in setup.py it works with source code in a relative fashion, such
as:
../../src
This causes pseudo to abort as it isn't tracking the paths. Therefore
implement the variable DISTUTILS_SETUP_PATH so that recipes can use:
S = "${WORKDIR}/git"
DISTUTILS_SETUP_PATH = "${S}/python/pythonmodule"
inherit distutils3
This allows the full source tree to be monitored, while distutils
can run setup.py from a location other than ${S}.
Signed-off-by: Jack Mitchell <ml@embed.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/coreutils')
0 files changed, 0 insertions, 0 deletions