V2EX  ›  英汉词典

Sdist

Definition / 释义

sdist(常见于 Python 生态)指“源代码发行包”(source distribution):一种把项目源代码按约定格式打包发布的归档文件(常见如 .tar.gz),用于分发源码,供用户在本地构建与安装。另有与之对应的二进制发行包 wheel

Pronunciation / 发音

/ˈɛs.dɪst/

Examples / 例句

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 安装可能需要编译器以及正确的构建依赖。

Etymology / 词源

sdistsource distribution(源代码发行包)的缩写;在 Python 打包工具(如 setuptools)中作为命令名/产物名广泛使用,用来区别于 bdist/wheel 这类偏“已构建好的二进制分发”。

Related Words / 相关词

Literary Works / 作品举例

  • Python Packaging User Guidepackaging.python.org)中关于 “Source Distributions (sdist)” 的章节
  • setuptools Documentation(Setuptools 用户指南)中关于 python -m build / setup.py sdist 的说明
  • PEP 517(A build-system independent format for source trees)中涉及 sdist 构建接口与流程的描述
  • PEP 518(Specifying Minimum Build System Requirements for Python Projects)中与构建 sdist 所需依赖相关的内容
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1865 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 09:57 · PVG 17:57 · LAX 01:57 · JFK 04:57
♥ Do have faith in what you're doing.