[meta-python] python3-twisted: also ship Twisted-*.dist-info

Message ID 20220226024235.1344539-1-tim.orling@konsulko.com
State New
Headers show
Series [meta-python] python3-twisted: also ship Twisted-*.dist-info | expand

Commit Message

Tim Orling Feb. 26, 2022, 2:42 a.m. UTC
With the PEP-517 packaging, we need to ship additional FILES-${PN} (the
wheel dist-info standard files).

This recipe may be overly complicated. This commit is only an attempt to
fix the install of the wheel.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 meta-python/recipes-devtools/python/python3-twisted_22.1.0.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch

diff --git a/meta-python/recipes-devtools/python/python3-twisted_22.1.0.bb b/meta-python/recipes-devtools/python/python3-twisted_22.1.0.bb
index 7b437916b1..4967b5a14d 100644
--- a/meta-python/recipes-devtools/python/python3-twisted_22.1.0.bb
+++ b/meta-python/recipes-devtools/python/python3-twisted_22.1.0.bb
@@ -80,8 +80,7 @@  RDEPENDS:${PN}-flow += "${PN}-core"
 RDEPENDS:${PN}-pair += "${PN}-core"
 RDEPENDS:${PN}-dbg = "${PN}"
 
-ALLOW_EMPTY:${PN} = "1"
-FILES:${PN} = ""
+FILES:${PN} = "${PYTHON_SITEPACKAGES_DIR}/${PYPI_PACKAGE}-${PV}.dist-info/*"
 
 FILES:${PN}-test = " \
     ${libdir}/${PYTHON_DIR}/site-packages/twisted/test \