mirror of
https://git.yoctoproject.org/poky
synced 2026-01-30 05:18:43 +01:00
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) (From OE-Core rev: 369eebad4f38c3641be73dbc0490c87636e0912d) 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> Signed-off-by: Steve Sakoman <steve@sakoman.com>
33 lines
1008 B
BlitzBasic
33 lines
1008 B
BlitzBasic
SUMMARY = "the blessed package to manage your versions by scm tags"
|
|
HOMEPAGE = "https://pypi.org/project/setuptools-scm/"
|
|
DESCRIPTION = "setuptools_scm handles managing your Python package \
|
|
versions in SCM metadata instead of declaring them as the version \
|
|
argument or in a SCM managed file."
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=838c366f69b72c5df05c96dff79b35f2"
|
|
|
|
SRC_URI += "file://0001-respect-GIT_CEILING_DIRECTORIES.patch"
|
|
SRC_URI[sha256sum] = "b5f43ff6800669595193fd09891564ee9d1d7dcb196cab4b2506d53a2e1c95c7"
|
|
|
|
inherit pypi python_setuptools_build_meta
|
|
|
|
UPSTREAM_CHECK_REGEX = "scm-(?P<pver>.*)\.tar"
|
|
|
|
DEPENDS += "python3-tomli-native python3-packaging-native python3-typing-extensions-native"
|
|
|
|
RDEPENDS:${PN} = "\
|
|
python3-packaging \
|
|
python3-pip \
|
|
python3-pyparsing \
|
|
python3-setuptools \
|
|
python3-tomli \
|
|
python3-typing-extensions \
|
|
"
|
|
|
|
RDEPENDS:${PN}:append:class-target = " \
|
|
python3-debugger \
|
|
python3-json \
|
|
"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|