Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | When building the dbus-ptest package, we have to enable python. However |
| 2 | checking if the host-system python has the necessary library isn't useful. |
| 3 | |
| 4 | Disable the python module check for cross compiling. |
| 5 | |
| 6 | Upstream-Status: Inappropriate [oe specific] |
| 7 | |
| 8 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> |
| 9 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 10 | --- |
| 11 | configure.ac | 7 ------- |
| 12 | 1 file changed, 7 deletions(-) |
| 13 | |
| 14 | diff --git a/configure.ac b/configure.ac |
| 15 | index 80d27b4..becc1cc 100644 |
| 16 | --- a/configure.ac |
| 17 | +++ b/configure.ac |
| 18 | @@ -279,13 +279,6 @@ if test "x$enable_tests" = xyes; then |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | # full test coverage is required, Python is a hard dependency |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 20 | AC_MSG_NOTICE([Full test coverage (--enable-tests=yes) requires Python, dbus-python, pygi]) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | AM_PATH_PYTHON([2.6]) |
| 22 | - AC_MSG_CHECKING([for Python modules for full test coverage]) |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 23 | - if "$PYTHON" -c "import dbus, gi.repository.GObject, dbus.mainloop.glib"; then |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 24 | - AC_MSG_RESULT([yes]) |
| 25 | - else |
| 26 | - AC_MSG_RESULT([no]) |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 27 | - AC_MSG_ERROR([cannot import dbus, gi.repository.GObject, dbus.mainloop.glib Python modules]) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 28 | - fi |
| 29 | else |
| 30 | # --enable-tests not given: do not abort if Python is missing |
| 31 | AM_PATH_PYTHON([2.6], [], [:]) |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 32 | -- |
| 33 | 1.9.1 |
| 34 | |