summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2021-11-03 08:40:56 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2021-11-03 08:53:07 +0200
commit2a252bae48815e60c8ece831dfde13313947fcc2 (patch)
tree2486dca134af028fccf8740d5fe4351a9bdf99d1 /dev-ros
parentdev-python/python_orocos_kdl: add 1.5.1 (diff)
downloadgentoo-2a252bae48815e60c8ece831dfde13313947fcc2.tar.gz
gentoo-2a252bae48815e60c8ece831dfde13313947fcc2.tar.bz2
gentoo-2a252bae48815e60c8ece831dfde13313947fcc2.zip
dev-ros/calibration_estimation: update live template
- use one `python_gen_cond_dep` for rdeps - convert internal python files, written in py2, to py3 - optimize python scripts Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-ros')
-rw-r--r--dev-ros/calibration_estimation/calibration_estimation-0.10.15-r1.ebuild (renamed from dev-ros/calibration_estimation/calibration_estimation-0.10.15.ebuild)0
-rw-r--r--dev-ros/calibration_estimation/calibration_estimation-9999.ebuild20
2 files changed, 14 insertions, 6 deletions
diff --git a/dev-ros/calibration_estimation/calibration_estimation-0.10.15.ebuild b/dev-ros/calibration_estimation/calibration_estimation-0.10.15-r1.ebuild
index 65951f6a974b..65951f6a974b 100644
--- a/dev-ros/calibration_estimation/calibration_estimation-0.10.15.ebuild
+++ b/dev-ros/calibration_estimation/calibration_estimation-0.10.15-r1.ebuild
diff --git a/dev-ros/calibration_estimation/calibration_estimation-9999.ebuild b/dev-ros/calibration_estimation/calibration_estimation-9999.ebuild
index 65951f6a974b..860c62b9d87d 100644
--- a/dev-ros/calibration_estimation/calibration_estimation-9999.ebuild
+++ b/dev-ros/calibration_estimation/calibration_estimation-9999.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
+}