Best practice for project organization with meson-python? #577
-
I started poking around with meson-python the other day, and I've achieved a working project which builds a C extension using CFFI: https://github.com/inklesspen/meson-python-cffi-example I am a little curious if I've made any bad decisions in the organization, though. For example, I've segregated the actual Python source from the CFFI module-generation source. (The |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @inklesspen, thanks for sharing. The codegen part with CFFI using The split between pure Python code to be installed under
and then install of |
Beta Was this translation helpful? Give feedback.
There's a bunch of different types of project files:
I've seen projects that keep all of them in src/, projects that keep the first three there but not the fourth, projects that keep only the first two there, and even...
... projects that keep only the second one there, as well as projects that keep only the first one there.
Expecting any form of universal consensus feels highly unlikely to me.
My personal opinion is that any combination of the first two is reasonable but I wouldn't put tests or build scripts there at all.