summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-06-23 22:27:58 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-06-24 03:06:08 +0000
commitbeed17372f3dc09aa422ee8dff5ec3bb187b86c3 (patch)
treea9e747045ee6558d0793f803646fc8051026a4e6 /tests
parent898bbe50005223f5f04994764b3e95f13dffe2d2 (diff)
downloadpygobject-beed17372f3dc09aa422ee8dff5ec3bb187b86c3.tar.gz
meson: support building pycairo as a subproject
Diffstat (limited to 'tests')
-rw-r--r--tests/meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/meson.build b/tests/meson.build
index 5933ddba..f72ead0f 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -118,7 +118,12 @@ endif
if host_machine.system() == 'windows'
envdata.prepend('PATH', join_paths(get_option('prefix'), get_option('bindir')))
endif
-envdata.append('PYTHONPATH', join_paths(meson.current_build_dir(), '..'))
+
+python_paths = [join_paths(meson.current_build_dir(), '..')]
+if with_pycairo and pycairo_dep.type_name() == 'internal'
+ python_paths += [join_paths(meson.build_root(), 'subprojects', 'pycairo')]
+endif
+envdata.append('PYTHONPATH', python_paths)
envdata.append('TESTS_BUILDDIR', meson.current_build_dir())
test('pygobject-test-suite', python,