当然,有些情况下他们不需要setup.py——例如,因为他们正在安装一个预打包的二进制egg或Windows安装程序或其他什么,但大多数软件包必须在正常情况下工作。因此,默认的打包命令包括它。在文档中,Specifying the files to distribute说:
If you don’t supply an explicit list of files (or instructions on how to generate one), the sdist command puts a minimal default set into the source distribution:
… setup.py (or whatever you called your setup script) …
在正常情况下,用户通过运行
python setup.py install
或有效执行相同操作(如pip install foo
)来安装应用程序。你知道吗当然,有些情况下他们不需要
setup.py
——例如,因为他们正在安装一个预打包的二进制egg或Windows安装程序或其他什么,但大多数软件包必须在正常情况下工作。因此,默认的打包命令包括它。在文档中,Specifying the files to distribute说:相关问题 更多 >
编程相关推荐