commit:     91d640016d97d0dee3f9d4a28b466b6141d1b9f9
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 16 04:26:18 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Thu Feb 16 04:31:43 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91d64001

dev-util/catkin: Set PYTHONPATH at configure time so that tests run against the 
version to install, not the installed one.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-util/catkin/catkin-0.7.5.ebuild | 1 +
 dev-util/catkin/catkin-9999.ebuild  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/dev-util/catkin/catkin-0.7.5.ebuild 
b/dev-util/catkin/catkin-0.7.5.ebuild
index 6dda0014e8..206cc51814 100644
--- a/dev-util/catkin/catkin-0.7.5.ebuild
+++ b/dev-util/catkin/catkin-0.7.5.ebuild
@@ -68,6 +68,7 @@ catkin_src_configure_internal() {
 }
 
 src_configure() {
+       export PYTHONPATH="${S}/python"
        local mycmakeargs=(
                "$(cmake-utils_use test CATKIN_ENABLE_TESTING)"
                "-DCATKIN_BUILD_BINARY_PACKAGE=ON"

diff --git a/dev-util/catkin/catkin-9999.ebuild 
b/dev-util/catkin/catkin-9999.ebuild
index 6dda0014e8..206cc51814 100644
--- a/dev-util/catkin/catkin-9999.ebuild
+++ b/dev-util/catkin/catkin-9999.ebuild
@@ -68,6 +68,7 @@ catkin_src_configure_internal() {
 }
 
 src_configure() {
+       export PYTHONPATH="${S}/python"
        local mycmakeargs=(
                "$(cmake-utils_use test CATKIN_ENABLE_TESTING)"
                "-DCATKIN_BUILD_BINARY_PACKAGE=ON"

Reply via email to