diff options
| author | Etienne Cordonnier <ecordonnier@snap.com> | 2025-02-13 17:32:10 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-18 11:56:03 +0000 |
| commit | d55cd3fc39b638b4b765b07c484e58880996febf (patch) | |
| tree | 0a73a5f58fe9d506f1c1a5febed616f41c923f83 /meta/recipes-devtools/python/python3-setuptools-scm_8.1.0.bb | |
| parent | 959db9cb12c19c81c1114b09d8f3eadf9831d280 (diff) | |
| download | poky-d55cd3fc39b638b4b765b07c484e58880996febf.tar.gz | |
python3-setuptools-scm: respect GIT_CEILING_DIRECTORIES
Fixes https://bugzilla.yoctoproject.org/show_bug.cgi?id=15740
python3-setuptools-scm was ignoring GIT_CEILING_DIRECTORIES which is set by poky,
and it was thus finding a wrong value of "toplevel" in ./src/setuptools_scm/_file_finders/git.py
The code is supposed to generate the list of files contained in python3-setuptools-scm, but it was
instead running "git archive" on whatever git repository was above the build directory, because the
tarball containing the sources of python3-setuptools-scm does not contain a .git directory.
This is barely noticeable when building as a subdirectory of poky which is only 48MB, but this was
causing serious slowdowns of python3-setuptools-scm:do_compile when building
inside a big git repository with files tracked using git-lfs (50 minutes in my use-case).
Reported upstream as https://github.com/pypa/setuptools-scm/issues/1103
(From OE-Core rev: 4ebe72477484cf68165b6f736ce10373e97d0e6d)
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-setuptools-scm_8.1.0.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-setuptools-scm_8.1.0.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-setuptools-scm_8.1.0.bb b/meta/recipes-devtools/python/python3-setuptools-scm_8.1.0.bb index 4bcc8e438a..14913ff958 100644 --- a/meta/recipes-devtools/python/python3-setuptools-scm_8.1.0.bb +++ b/meta/recipes-devtools/python/python3-setuptools-scm_8.1.0.bb | |||
| @@ -6,6 +6,7 @@ argument or in a SCM managed file." | |||
| 6 | LICENSE = "MIT" | 6 | LICENSE = "MIT" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=838c366f69b72c5df05c96dff79b35f2" | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=838c366f69b72c5df05c96dff79b35f2" |
| 8 | 8 | ||
| 9 | SRC_URI += "file://0001-respect-GIT_CEILING_DIRECTORIES.patch" | ||
| 9 | SRC_URI[sha256sum] = "42dea1b65771cba93b7a515d65a65d8246e560768a66b9106a592c8e7f26c8a7" | 10 | SRC_URI[sha256sum] = "42dea1b65771cba93b7a515d65a65d8246e560768a66b9106a592c8e7f26c8a7" |
| 10 | 11 | ||
| 11 | PYPI_PACKAGE = "setuptools_scm" | 12 | PYPI_PACKAGE = "setuptools_scm" |
