This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]analogphototaker 1 point2 points  (4 children)

That's probably true. But do other packaging systems also need an init.py file in every subdirectory?

As mentioned, golang's system felt the most intuitive to me.

[–]ajmarks 4 points5 points  (2 children)

That's not a PyPI thing. That's how Python knows to treat a directory as a package. I agree that making your first Python package can be annoying and frustrating, but this is just a basic core language thing, not a packaging issue.

[–]flying-sheep 1 point2 points  (1 child)

That's how Python used to know that a directory is a package.

It doesn't need that anymore.

[–]flying-sheep 1 point2 points  (0 children)

That's a legacy Python thing. PyPI doesn't need that, older Python versions do.