简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM