Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Packaging without setup.py

Did anybody try to create tools that create Python source distributions (sdist) without setup.py? Does Python allow that? Is that at all possible? Or setup.py is an obligatory part of any isntallable Python archive hosted on PyPI? If yes, then where is a PEP for that format?

like image 766
anatoly techtonik Avatar asked Aug 11 '26 05:08

anatoly techtonik


1 Answers

A Python package is just a bunch of Python files in a folder, possibly with an __init__.py file as well. It might also have subpackages, which are just packages within packages.

Generally, setup.py is not included in any such package.

like image 67
Kevin Avatar answered Aug 12 '26 20:08

Kevin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!