Automic VaultAutomic Vault

brew

使用 Homebrew, apk, pacman, apt, dnf 安装 cython

查看 cython 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install cython

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add cython

Alpine Linux edge package indexes · cython · 来源: dl-cdn.alpinelinux.org

Arch Linux pacman已验证 · 92%
sudo pacman -S cython

Arch Linux sync databases · cython · 来源: geo.mirror.pkgbuild.com

Debian apt已验证 · 92%
sudo apt install cython-doc

Debian stable package indexes · cython-doc · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install python3-cython

Fedora Rawhide package metadata · python3-cython · 来源: dl.fedoraproject.org

概览

软件包摘要

Compiler for writing C extensions for the Python language

命令和别名

  • cygdb
  • cython
  • cythonize

历史

项目历史与用法

Cython is an optimizing static compiler for Python and the extended Cython language. It translates Python-like code to C or C++ so developers can write CPython extension modules, wrap native libraries, and tune performance without abandoning Python syntax.

项目历史

The official Cython README says Cython was originally based on Greg Ewing's Pyrex and started as an early-2000s project. Cython kept the Python-extension-module idea but grew into a long-lived compiler with its own language features, type declarations, C/C++ interop, and CPython-version adaptation.

The official site describes Cython as a superset of Python that supports C/C++ functions and types, allowing generated C code to be compiled with major C/C++ compilers. The project repository was created on GitHub in 2010 and remains the active source for compiler, docs, and tooling.

采用历史

Cython became common infrastructure in the scientific Python and performance-sensitive Python ecosystem because it lets projects ship fast extension modules while retaining a Python-like development model. The official README states that Cython has more than 70 million PyPI downloads per month, which reflects broad use as a build-time dependency as well as a developer tool.

使用方式

Users install Cython, write .pyx modules or use pure-Python annotation mode, and run cython or cythonize to generate C/C++ code for extension builds. Common uses include wrapping external C libraries, optimizing numerical loops, interacting with NumPy arrays, embedding CPython, and maintaining generated C sources for reproducible builds.

为什么软件包爱好者会关心

Cython matters to package nerds because it sits at the boundary between source packages and compiled artifacts. A missing or mismatched Cython can decide whether a Python package builds from sdist, ships generated C, or requires wheels; it is one of the quiet tools behind many fast Python libraries.

时间线

  • Early 2000s: Cython starts as a project based on Pyrex.
  • 2010: cython/cython repository created on GitHub.
  • 2011: Official site links the IEEE article 'Cython: The best of both worlds'.
  • 2025: Official site lists Cython 3.1.4 as a stable release.
  • 2026: GitHub releases show ongoing 3.2.x and 3.3.0 alpha development.

Related projects

  • Pyrex is the predecessor named by the official README.
  • CPython is the primary runtime and C API target.
  • NumPy, PyPy, Pythran, mypyc, Nuitka, and Numba are related ecosystems or comparison points listed in official Cython materials.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
cygdbcli全局可执行文件
cythoncli全局可执行文件
cythonizecli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本3.2.8
管理器更新时间2026-07-01
本地数据OK
上游not checked
检测到的最新版本未检测到

https://cython.org/

  • 信息Release/tag comparison is only available for GitHub repositories.https://cython.org/none 置信度

安装元数据

软件包元数据

软件包键brew:cython
版本3.2.8
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/cython
主页https://cython.org/
仓库https://github.com/cython/cython
上游文档https://cython.org/
许可证Apache-2.0
源码归档https://files.pythonhosted.org/packages/b6/6b/80101e02ebacaf9232ecf32bf6a788d36b27d820ee02434746252569ef98/cython-3.2.8.tar.gz
最后更新2026-07-01T09:53:57Z
Pulseupdated
依赖python@3.14
构建依赖python-setuptools
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecython
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

cython-doc 3.0.11+dfsg-2

C-Extensions for Python 3 (Documentation)

http://cython.org/

sudo apt install cython-doc
  • Section: doc
  • Architecture: all
  • Source Package: cython
  • 3 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Cython
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cython-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

cython3 3.0.11+dfsg-2+b1

C-Extensions for Python 3

http://cython.org/

sudo apt install cython3
  • Section: python
  • Architecture: amd64
  • Source Package: cython
  • 2 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Cython
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cython3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

cython-doc 3.0.8-1ubuntu3

C-Extensions for Python - documentation

http://cython.org/

sudo apt install cython-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: cython
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Cython
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cython-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

cython3 3.0.8-1ubuntu3

C-Extensions for Python 3

http://cython.org/

sudo apt install cython3
  • Section: universe/python
  • Architecture: amd64
  • Source Package: cython
  • 2 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Cython
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cython3 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

cython 3.2.4-r2

Cython is an optimising static compiler for both the Python & the extended Cython programming languages.

https://cython.org/

sudo apk add cython
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: cython
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Cython
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cython from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

cython-doc 3.2.4-r2

Cython is an optimising static compiler for both the Python & the extended Cython programming languages. (documentation)

https://cython.org/

sudo apk add cython-doc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: cython
  • normalized package name match
  • 匹配方式:Cython
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cython-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

cython-pyc 3.2.4-r2

Precompiled Python bytecode for cython

https://cython.org/

sudo apk add cython-pyc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: cython
  • 1 依赖
  • normalized package name match
  • 匹配方式:Cython
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cython-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

python3-cython 3.2.4-4.fc45

Language for writing Python extension modules

http://www.cython.org

sudo dnf install python3-cython
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: Cython
  • 4 依赖
  • 11 提供
  • normalized package name match
  • 匹配方式:Cython
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: python3-cython from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

cython 3.2.5-1

C-Extensions for Python

https://cython.org

sudo pacman -S cython
  • License: Apache-2.0
  • Architecture: x86_64
  • 5 依赖
  • normalized package name match
  • 匹配方式:Cython
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cython from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment