sdist(常见于 Python 生态)指“源代码发行包”(source distribution):一种把项目源代码按约定格式打包发布的归档文件(常见如 .tar.gz),用于分发源码,供用户在本地构建与安装。另有与之对应的二进制发行包 wheel。
/ˈɛs.dɪst/
I built an sdist for my library before uploading it.
我在上传之前为我的库构建了一个 sdist 源码包。
If the project includes compiled extensions, installing from sdist may require a compiler and the right build dependencies.
如果项目包含需要编译的扩展,从 sdist 安装可能需要编译器以及正确的构建依赖。
sdist 是 source distribution(源代码发行包)的缩写;在 Python 打包工具(如 setuptools)中作为命令名/产物名广泛使用,用来区别于 bdist/wheel 这类偏“已构建好的二进制分发”。
python -m build / setup.py sdist 的说明