summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2025-02-17 15:46:19 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-18 12:04:03 +0000
commita4ba090f61484ea7cf8014c232ebec6f195f54a3 (patch)
treec98b5d6a39068976d59bfae989a4eaa467060c98 /meta/classes-recipe
parent5eaba2308f13fb1e96e826033bc58d9902a61f84 (diff)
downloadpoky-a4ba090f61484ea7cf8014c232ebec6f195f54a3.tar.gz
setuptools3-base.bbclass: override default subprocess timeout
The environment variable SETUPTOOLS_SCM_SUBPROCESS_TIMEOUT allows to override the subprocess timeout. The default is 40 seconds and should work for most needs.[1] However, it was not enough while using git shallow tarball and starting multiple Yocto world builds in one host. |   File "tmp/work/x86_64-linux/python3-scancode-native/32.1.0/recipe-sysroot- native/usr/lib/python3.13/subprocess.py", line 1263, in _check_timeout |     raise TimeoutExpired( |     ...<2 lines>... |             stderr=b''.join(stderr_seq) if stderr_seq else None) | subprocess.TimeoutExpired: Command '['git', '--git-dir', 'tmp/work/x86_64- linux/python3-scancode-native/32.1.0/git/.git', 'status', '--porcelain', '--untracked-files=no']' timed out after 40 seconds Explicitly set variable SETUPTOOLS_SCM_SUBPROCESS_TIMEOUT to 600s in bbclass, and we could override it in local.conf [1] https://github.com/pypa/setuptools-scm/blob/main/docs/overrides.md (From OE-Core rev: a3a2edbf7139b7f8c665c2b0b13e094a334e4441) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r--meta/classes-recipe/setuptools3-base.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes-recipe/setuptools3-base.bbclass b/meta/classes-recipe/setuptools3-base.bbclass
index 27af6abc58..190d9e6e3a 100644
--- a/meta/classes-recipe/setuptools3-base.bbclass
+++ b/meta/classes-recipe/setuptools3-base.bbclass
@@ -23,6 +23,10 @@ export CCSHARED = "-fPIC -DPIC"
23# the python executable 23# the python executable
24export LINKFORSHARED = "${SECURITY_CFLAGS} -Xlinker -export-dynamic" 24export LINKFORSHARED = "${SECURITY_CFLAGS} -Xlinker -export-dynamic"
25 25
26# The environment variable SETUPTOOLS_SCM_SUBPROCESS_TIMEOUT allows
27# to override the subprocess timeout.
28export SETUPTOOLS_SCM_SUBPROCESS_TIMEOUT ??= "600"
29
26FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}" 30FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}"
27FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a" 31FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a"
28FILES:${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la" 32FILES:${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la"