Multiple top-level packages discovered in a flat-layout

Based on this comment on a GitHub issue, adding the following lines to your pyproject.toml might solve your problem:

py-modules = []

(For my case, the other workaround provided in that comment, i.e. adding py_modules=[] as a keyword argument to the setup() function in worked)

Leave a Comment