Skip to content

Commit

Permalink
test: print pyiguana libs and headers
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Jan 8, 2024
1 parent ed0f532 commit 52f307d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bind/python/pyiguana/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down

0 comments on commit 52f307d

Please sign in to comment.