diff options
Diffstat (limited to 'dev-ros/calibration_estimation/calibration_estimation-0.10.14.ebuild')
-rw-r--r-- | dev-ros/calibration_estimation/calibration_estimation-0.10.14.ebuild | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dev-ros/calibration_estimation/calibration_estimation-0.10.14.ebuild b/dev-ros/calibration_estimation/calibration_estimation-0.10.14.ebuild index 804aef9eae27..c83819a9fef4 100644 --- a/dev-ros/calibration_estimation/calibration_estimation-0.10.14.ebuild +++ b/dev-ros/calibration_estimation/calibration_estimation-0.10.14.ebuild @@ -30,3 +30,10 @@ DEPEND="${RDEPEND} dev-ros/rostest[${PYTHON_SINGLE_USEDEP}] $(python_gen_cond_dep "dev-python/nose[\${PYTHON_USEDEP}]") )" +PATCHES=( "${FILESDIR}/py3.patch" ) + +src_prepare() { + ros-catkin_src_prepare + sed -e 's/yaml.load/yaml.safe_load/g' -i src/*/*.py -i test/*.py || die + 2to3 -w src/*/*.py src/*/*/*.py test/*.py || die +} |