macOS
brew install pythranlocal Homebrew formula metadata
安装
brew install pythranlocal Homebrew formula metadata
sudo apk add pythranAlpine Linux edge package indexes · pythran · 来源: dl-cdn.alpinelinux.org
sudo dnf install pythranFedora Rawhide package metadata · pythran · 来源: dl.fedoraproject.org
sudo apt install python-pythran-docDebian stable package indexes · python-pythran-doc · 来源: deb.debian.org
概览
Ahead of Time compiler for numeric kernels
历史
Pythran is an ahead-of-time compiler for a statically analyzable subset of Python, focused on scientific and numerical kernels. It translates annotated modules into optimized native modules while preserving a Python import interface.
Pythran emerged from scientific-Python work on compiling numerical kernels without requiring developers to rewrite entire modules in C, C++, or Fortran. Its 2013 SciPy paper presented a static compiler that translates annotated Python modules into native extension modules.
The project developed into a Python-to-C++17 translator with interprocedural optimization, partial NumPy support, SIMD and multicore facilities, package-build integration, configurable compiler and BLAS settings, and an interface for producing either Python modules or raw C++.
Pythran remained a specialized compiler rather than a general application runtime, but it found a durable role in scientific Python. SciPy began accepting Pythran-based performance improvements and made it a default build dependency in the SciPy 1.7 development cycle, with an opt-out during the transition.
Its distribution through PyPI, conda-forge, Homebrew, and Linux distributions reflects use both as a developer-facing compiler and as build infrastructure behind native scientific-Python extensions.
Developers add export declarations or supported type annotations to selected Python functions and invoke pythran to create an importable native module. It is best suited to numerical kernels expressible within Pythran's supported Python and NumPy subset.
Compiler, linker, optimization, and BLAS choices can be stored in .pythranrc. The documented XDG location is $XDG_CONFIG_HOME/.pythranrc, ~/.pythranrc is also documented, and PYTHRANRC can override the selected file; command-line settings take precedence.
Pythran is interesting to package maintainers because it occupies the boundary between Python source, generated C++, compiler toolchains, NumPy APIs, BLAS selection, SIMD libraries, and platform-specific extension modules. Reproducible compilation and compatibility with new CPython and NumPy releases are therefore central concerns.
Unlike a general Python interpreter, Pythran is normally a build-time accelerator: users preserve a Python-facing import interface while packaging native artifacts produced from a statically analyzable subset of the language.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.pythranrc$XDG_CONFIG_HOME/.pythranrc.pythranrc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
pythran | cli | 全局可执行文件 | |
pythran-config | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://pythran.readthedocs.io/
安装元数据
| 软件包键 | brew:pythran |
|---|---|
| 版本 | 0.19.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/pythran |
| 主页 | https://pythran.readthedocs.io/ |
| 仓库 | https://github.com/serge-sans-paille/pythran |
| 上游文档 | https://pythran.readthedocs.io/ |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://files.pythonhosted.org/packages/bb/a3/03098a8a5d2c9f801c227cf941d85976934f5f47307ef3d819734370acdc/pythran-0.19.0.tar.gz |
| 最后更新 | 2026-10-25T08:40:43Z |
| Pulse | updated |
| 依赖 | boost, numpy, openblas, python@3.15, xsimd |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pythran |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
python-pythran-doc 0.17.0+ds-1
ahead of time compiler for Python (Documentation)
https://github.com/serge-sans-paille/pythran
sudo apt install python-pythran-docpython3-pythran 0.17.0+ds-1
ahead of time compiler for Python
https://github.com/serge-sans-paille/pythran
sudo apt install python3-pythranpython-pythran-doc 0.15.0+ds-2
ahead of time compiler for Python (Documentation)
https://github.com/serge-sans-paille/pythran
sudo apt install python-pythran-docpython3-pythran 0.15.0+ds-2
ahead of time compiler for Python
https://github.com/serge-sans-paille/pythran
sudo apt install python3-pythranpythran 0.18.1-r1
Ahead of Time compiler for numeric kernels
https://github.com/serge-sans-paille/pythran
sudo apk add pythranpythran-pyc 0.18.1-r1
Precompiled Python bytecode for pythran
https://github.com/serge-sans-paille/pythran
sudo apk add pythran-pycpythran 0.19.0-1.fc46
Ahead of Time Python compiler for numeric kernels
https://github.com/serge-sans-paille/pythran
sudo dnf install pythran来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.