Replies: 3 comments 18 replies
-
This is the first time for me seeing this configuration, so I'm not sure this is the right answer, but here are a few thoughts:
|
Beta Was this translation helpful? Give feedback.
-
I think that the way you are trying to solve this is the wrong one: having a project using a part of itself as a subproject seems more a source of trouble than a solution to any problem. Which problem does using the library as a subproject solve? Why can't you simply use build targets defined in other parts of the build definition in the build definition for the Python wrapper? If the library and the Python binding are separate projects, have two separate repositories with the Python wrappers possibly including the library as a subproject via a git submodule. If you want to keep them in the same git repository, I don't see the reason for having the library to be a fictitious submodule. |
Beta Was this translation helpful? Give feedback.
-
How is this different from having subdir('python') in the top-level |
Beta Was this translation helpful? Give feedback.
-
I am experimenting with moving the arrow-nanoarrow project over from setuptools to Meson. Generally, I have a working configuration for local development that you can see here:
apache/arrow-nanoarrow#644
The layout of the project is:
In the Python directory, I am symlinking the
subprojects/arrow-nanoarrow
directory back to the project root, so that I can use dependencies from that in the Python configuration:This works when installing from source in the repository, but when I create a source distribution things break, because that symlink is not maintained.
Is there a better way to handle this situation? Should I be using the wrap system as a fallback when the symlink cannot be found? Or is my approach totally off?
Beta Was this translation helpful? Give feedback.
All reactions