File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,15 @@ def get_extensions(is_test):
58
58
bindings_sources = [os .path .join (PYTHON_BINDINGS_PATH , "cyprecice" ,
59
59
"cyprecice" + ".pyx" )]
60
60
61
+ if not pkgconfig .exists ('libprecice' ):
62
+ raise Exception ("\n " .join ([
63
+ "pkg-config was unable to find libprecice." ,
64
+ "Please make sure that preCICE was installed correctly and pkg-config is able to find it." ,
65
+ "You may need to set PKG_CONFIG_PATH to include the location of the libprecice.pc file." ,
66
+ "Use \" pkg-config --modversion libprecice\" for debugging." ]))
67
+
68
+ print ("Found preCICE version " + pkgconfig .modversion ('libprecice' ))
69
+
61
70
compile_args += pkgconfig .cflags ('libprecice' ).split ()
62
71
63
72
if not is_test :
@@ -74,7 +83,8 @@ def get_extensions(is_test):
74
83
language = "c++" ,
75
84
include_dirs = include_dirs ,
76
85
extra_compile_args = compile_args ,
77
- extra_link_args = link_args
86
+ extra_link_args = link_args ,
87
+ define_macros = [("NPY_NO_DEPRECATED_API" , "NPY_1_7_API_VERSION" )]
78
88
)
79
89
]
80
90
You can’t perform that action at this time.
0 commit comments