Re:How to make a Python package in 2021
by ThePhysicist on Thursday April 08, 2021 @03:43AM
(#26736118)
Maybe I'm too old-fashioned then. But I like that you don't have any dependencies when using distutils/setuputils with a `setup.py` file, so if you don't distribute your code you're already done. I'm also not a fan of tools that are just wrappers around other tools.
[ Parent
| on HN ]
Re:How to make a Python package in 2021
by takluyver on Thursday April 08, 2021 @04:06AM
(#26736250)
Flit isn't (mostly) a wrapper around other tools - it has its own code to create and upload packages. This was one of the motivating cases for the PEPs (517, 518) defining a standard interface for build tools, so it's practical to make tools like this without wrapping setuptools.
(flit install does wrap pip, however)
How does setuptools not count as a dependency?
If you've never run into setuptools compatibility problems, you've either been much luckier than me, or you haven't done much with Python packages.
Vanilla ubuntu used to come with a version of setuptools which didn't work for installing many recent packages.