python-bindings
python-bindings copied to clipboard
set PKG_CONFIG_PATH if necessary
When installed in a non-system location, pkg-config is not able to find the configuration file. According to pkg-config's manual, "the default is libdir/pkgconfig:datadir/pkgconfig where libdir is the libdir where pkg-config and datadir is the datadir where pkg-config was installed."
This PR sets PKG_CONFIG_PATH
using LD_LIBRARY_PATH
to make finding precice easier.
Hi @nkr0,
I am trying to understand why the change you have suggested is necessary. Did you install the pyprecice
in a non-system location? Or is this about preCICE itself not being installed in a system known location?
For when precice is installed in non system places. I'll add a few comments in the file for explanation.
@nkr0 thanks for the explanation, now its clear what the change does. I think this makes sense, and if I remember correctly, you opened this PR after a discussion with @fsimonis on Gitter, right?
Closing this in favor of handling the error message when preCICE has not bee found, in https://github.com/precice/python-bindings/issues/209