setuptools的角色是什么?后端支持意味着什么?

2024-05-20 15:28:31 发布

您现在位置:Python中文网/ 问答频道 /正文

我最近参加了一门关于Python打包的课程,内容包括setuptoolssetup.py。然后我去了图书馆的documentation,我发现由于搬到setup.cfg和其他新的变化,我学到了旧东西:(

除了setuptools现代化的方式之外,我有兴趣在Python packaging at a glance section中阅读以下内容:

The landscape of Python packaging is shifting and Setuptools has evolved to only provide backend support, no longer being the de-facto packaging tool in the market.

Q:首先,他们所说的后端支持是什么意思?然后,当前的环境是什么样子的,以及(我想是前端,但这又是什么)替代setuptools的方案是什么

看了一下more我还发现:

Since setuptools no longer serves as the default build tool [...]

但后来谷歌搜索让我找到了Python打包管理局的recommended tools,在那里它说:

  • Use setuptools to define projects and create Source Distributions.
  • Use the bdist_wheel setuptools extension available from the wheel project to create wheels. This is especially beneficial, if your project contains binary extensions.

Q:这是否意味着景观演变的结果导致了wheel


Tags: andthetonoprojectisusecreate