简体   繁体   English

没有setup.py的包装

[英]Packaging without setup.py

Did anybody try to create tools that create Python source distributions ( sdist ) without setup.py ? 有没有人试图在没有setup.py情况下创建创建Python源代码分发( sdist )的工具? Does Python allow that? Python允许吗? Is that at all possible? 那可能吗? Or setup.py is an obligatory part of any isntallable Python archive hosted on PyPI? 或者, setup.py是PyPI上托管的任何可承销Python档案的必备部分? If yes, then where is a PEP for that format? 如果是,那么该格式的PEP在哪里?

A Python package is just a bunch of Python files in a folder, possibly with an __init__.py file as well. Python包只是文件夹中的一堆Python文件, 也可能带有__init__.py文件。 It might also have subpackages, which are just packages within packages. 它也可能有子包,它们只是包中的包。

Generally, setup.py is not included in any such package. 通常, setup.py不包含在任何此类包中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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