Skip to content

Best practice for project organization with meson-python? #577

Answered by eli-schwartz
inklesspen asked this question in Q&A
Discussion options

You must be logged in to vote

There's a bunch of different types of project files:

  • C files that are compiled and the resulting CPython extension is installed
  • python files that are installed
  • tests
  • build scripts

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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@inklesspen
Comment options

@rgommers
Comment options

@inklesspen
Comment options

@eli-schwartz
Comment options

Answer selected by inklesspen
@rgommers
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants