-
Notifications
You must be signed in to change notification settings - Fork 14
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
Intra-application dependencies between modules #7
Comments
just import the module in the desc. |
Thank you for the answer! from cpp2py.wrap_generator import *
# The module
module = module_(full_name = "test_module", doc = "The cthyb solver", app_name = "solver_core")
# Imports
import pytriqs.gf
import pytriqs.operators
import pytriqs.statistics.histograms
import pytriqs.atom_diag
import solver_core
module.generate_code() There seems to be a problem with some mako template:
|
which module do you want to add to cthyb ? |
I don't want to modify cthyb. I just use it as a working setup to learn how inter-module dependencies work. add_cpp2py_module(test_module)
target_link_libraries(test_module cthyb_c)
target_include_directories(test_module PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) |
The simplest would be for me to see your dev branch. |
Here it is: https://github.com/TRIQS/cthyb/tree/cpp2py_test_module |
When cpp2py was a part of triqs, it was possible to define a wrapped type in one Python module, and then use it in another module of the same application. For example, I could have the following description file,
Can I achieve a similar effect with the new cpp2py?
As far as I can see,
use_module()
is now not a thing...The text was updated successfully, but these errors were encountered: