How to Use Cython Generated Header Files in Other Libraries #14388
-
In Cython, usage of the With Meson, those auto-generated headers are appearing in the build directory. However, it's unclear to me how you should be directing other targets to use those auto-generated headers. For a practical example, I've been working with the Arrow project to build their Python library in Meson. They have a file lib_lib = py.extension_module(
'lib',
sources: ['lib.pyx'] + pyarrow_srcs,
include_directories: ['src'],
cython_args: cython_args,
dependencies: [arrow_dep, numpy_dep],
override_options: ['cython_language=cpp'],
subdir: 'pyarrow',
install: true,
)` How can I let then subsequent targets know where in the build directory to find those headers? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Which directory do they appear in? Can you check out |
Beta Was this translation helpful? Give feedback.
Which directory do they appear in?
Can you check out
build_tgt.private_dir_include()
?