Skip to contentSkip to conversation

python3-twisted: remove do_install append

PATCH New Guðni Már Gilbert 1 participant 2 messages Nov 10, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-twisted: remove do_install append

It looks like it doesn't remove any files today. So I propose we simply remove this append to do_install to clean up the recipe

---
 .../recipes-devtools/python/python3-twisted_24.10.0.bb       | 5 -----
 1 file changed, 5 deletions(-)
meta-python/recipes-devtools/python/python3-twisted_24.10.0.bb +0 -5
index 056ddf428..b097cb7fb 100644
@@ -10,11 +10,6 @@ SRC_URI[sha256sum] = "02951299672595fea0f70fa2d5f7b5e3d56836157eda68859a6ad6492d
 
 inherit pypi python_hatchling
 
-do_install:append() {
-    # remove some useless files before packaging
-    find ${D} \( -name "*.bat" -o -name "*.c" -o -name "*.h" \) -exec rm -f {} \;
-}
-
 PACKAGES =+ "\
     ${PN}-zsh \
     ${PN}-test \
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 python3-twisted: move appdirs from core package

python3-appdirs is currently only a dependency when python3-twisted-conch is installed.

I propose to remove python3-appdirs from python3-twisted-core such that it's not installed in the final image when python3-twisted-conch is not installed.

---
 .../recipes-devtools/python/python3-twisted_24.10.0.bb       | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta-python/recipes-devtools/python/python3-twisted_24.10.0.bb +2 -3
index b097cb7fb..865190fac 100644
@@ -42,8 +42,7 @@ RDEPENDS:${PN} = "\
     ${PN}-zsh \
 "
 
-RDEPENDS:${PN}-core = "python3-appdirs \
-                       python3-asyncio \
+RDEPENDS:${PN}-core = "python3-asyncio \
                        python3-attrs \
                        python3-automat \
                        python3-constantly \
@@ -57,7 +56,7 @@ RDEPENDS:${PN}-core = "python3-appdirs \
                        python3-zopeinterface \
 "
 RDEPENDS:${PN}-test = "${PN} python3-pyhamcrest"
-RDEPENDS:${PN}-conch = "${PN}-core ${PN}-protocols python3-bcrypt python3-cryptography python3-pickle"
+RDEPENDS:${PN}-conch = "${PN}-core ${PN}-protocols python3-appdirs python3-bcrypt python3-cryptography python3-pickle"
 RDEPENDS:${PN}-mail = "${PN}-core ${PN}-protocols"
 RDEPENDS:${PN}-names = "${PN}-core"
 RDEPENDS:${PN}-runner = "${PN}-core ${PN}-protocols"
Signature · 1 line
2.43.0