python-bindings
python-bindings copied to clipboard
Installation fails on MacOS X
When installing preCICE from source on MacOS X, installation of the Python bindings fails. Installation was conducted using pip.
I observed two different problems:
- The preCICE headers could not be found. This could normally be solved by setting
CPATHto preCICE'sinclude/directory. clangfailed to link the bindings against preCICE as it does not findlprecice. I was not able to fix it. Even settingDYLD_LIBRARY_PATHto thelib/directory of preCICE did not fix this issue.
I started to reproduce the issue in a workflow, see https://github.com/precice/python-bindings/pull/138, for a system installation into /usr.
Just as an addition: It seems that the compilation and installation could be fixed easily by using pkg-config (see #135). It is still unclear how to make the installed preCICE library findable/known to MacOS X such that it is available when import precice is called.