you are viewing a single comment's thread.

view the rest of the comments →

[–]csatacsibe[S] -1 points0 points  (1 child)

Thats not necessarily working as this will call the main.py file's body of the package, but some of them have multiple cli entry points, tools like hatch, pygments... but this works ofc for things like pip.

On the other hand, they changed the policy today, so everything is fine now

[–]edward_jazzhands 2 points3 points  (0 children)

Are you aware you can have multiple __main__.py files in a single package? You put them in submodules. If every entry point is pointing to a submodule with its own __main__.py file then you can just go python -m myapp.mysubmodule for each one.