Skip to contentSkip to conversation

python3-nose: rename ${bindir}/nosetests into ${bindir}/nosetests3

PATCH New Martin Kelly 1 participant 1 message Feb 6, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-nose: rename ${bindir}/nosetests into ${bindir}/nosetests3

From: Denys Dmytriyenko <[email protected]>

This resolves a conflict when both python-nose and python3-nose are pulled into an image and try to install ${bindir}/nosetests binary.

This matches with how other distros are solving this problem, e.g. Debian:
https://packages.debian.org/jessie/all/python3-nose/filelist

Also, other packages like python3-setuptools are already doing the same with their binaries.

---
 meta/recipes-devtools/python/python3-nose_1.3.7.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-devtools/python/python3-nose_1.3.7.bb +4 -0
index 99bba4403f..1e2ff74f57 100644
@@ -17,6 +17,10 @@ S = "${WORKDIR}/nose-${PV}"
 
 inherit setuptools3
 
+do_install_append() {
+    mv ${D}${bindir}/nosetests ${D}${bindir}/nosetests3
+}
+
 RDEPENDS_${PN}_class-target = "\
   python3-unittest \
   "
Signature · 1 line
2.11.0