Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python for bindings #6139

Closed
davydden opened this issue Apr 2, 2018 · 3 comments
Closed

python for bindings #6139

davydden opened this issue Apr 2, 2018 · 3 comments

Comments

@davydden
Copy link
Contributor

davydden commented Apr 2, 2018

how do we search for Python to be used with Python bindings?

I have export PYTHONHOME=<blabla> environment variable set, export CMAKE_PREFIX_PATH= contains prefix to the installed Python, export PATH= has path to python executable but still dealii picks up system python:

    -- Setting up python bindings
    -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found version "3.6.3")
    -- Found PythonInterp: /usr/bin/python3.6 (found version "1.4")
@Rombur
Copy link
Member

Rombur commented Apr 2, 2018

We use this and this. So you need to use -DPYTHON_LIBRARY and -DPYTHON_INCLUDE_DIR to set the library correctly and -DPYTHON_EXECUTABLE to set the interpretor.

@davydden
Copy link
Contributor Author

davydden commented Apr 2, 2018

thanks @Rombur , that worked! I completely overlooked these settings.

@davydden davydden closed this as completed Apr 2, 2018
@Rombur
Copy link
Member

Rombur commented Apr 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants