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 bindings to FS #530

Draft
wants to merge 1 commit into
base: development
Choose a base branch
from
Draft

Conversation

wkotlarski
Copy link

@wkotlarski wkotlarski commented Mar 15, 2023

Compiling the library:

g++ -O3 -Wall -shared -std=c++11 -fPIC $(python3.11 -m pybind11 --includes) pybind.cpp -o fs_pybind.so

Usage:

import fs_pybind

fs_pybind.add(1,2)

TODO:

  • add --with-python and --python-executable options to configure
  • modify build system (add rule for pybind.cpp)
  • how to pass settings (dictionary?)

@wkotlarski wkotlarski linked an issue Mar 15, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

python interface to FlexibleSUSY
1 participant