From 52f307d4faf028eb44137d37b6a80bba16992b3a Mon Sep 17 00:00:00 2001 From: Christopher Dilks Date: Mon, 8 Jan 2024 16:12:09 -0500 Subject: [PATCH] test: print pyiguana libs and headers --- bind/python/pyiguana/__init__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bind/python/pyiguana/__init__.py b/bind/python/pyiguana/__init__.py index a5a5070a1..b966fb855 100644 --- a/bind/python/pyiguana/__init__.py +++ b/bind/python/pyiguana/__init__.py @@ -6,8 +6,13 @@ for pkg in ['iguana'] + [p.split()[0] for p in pkgconfig.requires('iguana') if p!='']: if not pkgconfig.exists(pkg): raise Exception(f'failed to find "{pkg}.pc" in pkg-config path') - cppyy.add_include_path(pkgconfig.variables(pkg)['includedir']) - cppyy.add_library_path(pkgconfig.variables(pkg)['libdir']) + pkg_info = { + 'includedir': pkgconfig.variables(pkg)['includedir'], + 'libdir': pkgconfig.variables(pkg)['libdir'], + } + print(f'DEBUG: pyiguana - add package {pkg}: {pkginfo}') + cppyy.add_include_path(pkg_info['includedir']) + cppyy.add_library_path(pkg_info['libdir']) # add libraries to cppyy for lib in ['hipo4', 'IguanaServices', 'IguanaAlgorithms']: