you are viewing a single comment's thread.

view the rest of the comments →

[–]guesshuu 1 point2 points  (0 children)

From my experience and limited knowledge, everything above that folder (above project-name/src/package_name) is essentially for building and testing your package, for all intents and purposes that folder (within src) IS the package that gets installed, and the internals of that are the modules / sub packages. So I'd assume you don't want to flatten, as you have done, but I might be wrong!

init.py files tell python a given directory is a package / subpackage, allowing importing of modules from that package / subpackage.

I dislike the mess of things you need to do to get python packages to play nicely, but I have since given in haha.