summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2021-11-03 08:48:18 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2021-11-03 08:53:08 +0200
commita3a608c348c280889f4d3bb9f9a21d2153ed6f10 (patch)
tree867ebe652a6d9459f245502631a2efadc271063d /dev-ros/calibration_estimation/calibration_estimation-0.10.15-r1.ebuild
parentdev-ros/calibration_estimation: update live template (diff)
downloadgentoo-a3a608c348c280889f4d3bb9f9a21d2153ed6f10.tar.gz
gentoo-a3a608c348c280889f4d3bb9f9a21d2153ed6f10.tar.bz2
gentoo-a3a608c348c280889f4d3bb9f9a21d2153ed6f10.zip
dev-ros/calibration_estimation: fix python code
- match new live version - All tests pass now Closes: https://bugs.gentoo.org/809521 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-ros/calibration_estimation/calibration_estimation-0.10.15-r1.ebuild')
-rw-r--r--dev-ros/calibration_estimation/calibration_estimation-0.10.15-r1.ebuild20
1 files changed, 14 insertions, 6 deletions
diff --git a/dev-ros/calibration_estimation/calibration_estimation-0.10.15-r1.ebuild b/dev-ros/calibration_estimation/calibration_estimation-0.10.15-r1.ebuild
index 65951f6a974b..860c62b9d87d 100644
--- a/dev-ros/calibration_estimation/calibration_estimation-0.10.15-r1.ebuild
+++ b/dev-ros/calibration_estimation/calibration_estimation-0.10.15-r1.ebuild
@@ -14,16 +14,18 @@ SLOT="0"
IUSE=""
RDEPEND="
- $(python_gen_cond_dep "dev-python/numpy[\${PYTHON_USEDEP}]")
dev-ros/rosgraph[${PYTHON_SINGLE_USEDEP}]
dev-ros/roslib[${PYTHON_SINGLE_USEDEP}]
- $(python_gen_cond_dep "dev-python/rospkg[\${PYTHON_USEDEP}]")
dev-ros/rospy[${PYTHON_SINGLE_USEDEP}]
dev-ros/calibration_msgs[${CATKIN_MESSAGES_PYTHON_USEDEP}]
- $(python_gen_cond_dep "dev-python/matplotlib[\${PYTHON_USEDEP}]")
- $(python_gen_cond_dep "dev-python/python_orocos_kdl[\${PYTHON_USEDEP}]")
- $(python_gen_cond_dep "dev-python/scipy[\${PYTHON_USEDEP}]")
- $(python_gen_cond_dep "dev-python/urdf_parser_py[\${PYTHON_USEDEP}]")
+ $(python_gen_cond_dep '
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/rospkg[${PYTHON_USEDEP}]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/python_orocos_kdl[${PYTHON_USEDEP}]
+ dev-python/scipy[${PYTHON_USEDEP}]
+ dev-python/urdf_parser_py[${PYTHON_USEDEP}]
+ ')
"
DEPEND="${RDEPEND}
test? (
@@ -33,6 +35,7 @@ DEPEND="${RDEPEND}
src_prepare() {
ros-catkin_src_prepare
+ 2to3 -n -w --no-diffs test/*.py src/${PN}/{,sensors/}*.py || die
sed -e 's/yaml.load/yaml.safe_load/g' -i src/*/*.py -i test/*.py || die
}
@@ -40,3 +43,8 @@ src_test() {
export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
ros-catkin_src_test
}
+
+src_install() {
+ ros-catkin_src_install
+ python_optimize
+}