precice / precice/python-bindings

Installation fails on MacOS X

Open
#139 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Cython
Stars
30
Forks
19
PR merge metrics
No merged PRs in 30d

Description

When installing preCICE from source on MacOS X, installation of the Python bindings fails. Installation was conducted using pip.

I observed two different problems:

  1. The preCICE headers could not be found. This could normally be solved by setting CPATH to preCICE's include/ directory.
  2. clang failed to link the bindings against preCICE as it does not find lprecice. I was not able to fix it. Even setting DYLD_LIBRARY_PATH to the lib/ 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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproduction workflow described in pull request #138 and reproduce the pip installation on macOS. Investigate how the build locates preCICE headers and the lprecice library when CPATH and DYLD_LIBRARY_PATH are set. Done means the Python bindings install successfully from source on macOS.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.