python3-cryptography: backport stray file install fix
PATCH 1/1 python3-cryptography: backport stray file install fix
From: Deepak Rathore <[email protected]>
Maturin 1.12 changed the handling of include entries from pyproject.toml. With the current cryptography metadata, files like CHANGELOG.rst, CONTRIBUTING.rst, docs and tests can be installed under site-packages instead of being kept only in the source archive.
That can cause image install conflicts when packages such as python3-pyrad and python3-pyexpect are installed with python3-cryptography, because those packages also install top-level docs or tests directories under site-packages.
Backport the upstream cryptography fix which marks these entries as sdist-only. The files remain available from the source tree, so the existing ptest install path which copies tests from ${S} is not changed.
--- .../python/python3-cryptography.bb | 1 + ...lling-stray-files-into-site-packages.patch | 55 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-cryptography/0002-Fix-installing-stray-files-into-site-packages.patch
meta/recipes-devtools/python/python3-cryptography.bb +1 -0
@@ -14,6 +14,7 @@ require python3-cryptography-common.inc SRC_URI[sha256sum] = "abace499247268e3757271b2f1e244b36b06f8515cf27c4d49468fc9eb16e93d" SRC_URI += "file://0001-pyproject.toml-remove-benchmark-disable-option.patch \ + file://0002-Fix-installing-stray-files-into-site-packages.patch \ file://check-memfree.py \ file://run-ptest \ "
meta/recipes-devtools/python/python3-cryptography/0002-Fix-installing-stray-files-into-site-packages.patch new file +55 -0
55 lines not on this page · raw message
Signature · 1 line
2.35.6