macOS
brew install pythranlocal Homebrew formula metadata
brew / rank 5519
Ahead of Time compiler for numeric kernels. Version 0.19.0 via Homebrew; verified 2026-10-25. Also installable with debian: sudo apt install python-pythran-doc.
install
brew install pythranlocal Homebrew formula metadata
sudo apk add pythranAlpine Linux edge package indexes · pythran · source: dl-cdn.alpinelinux.org
sudo dnf install pythranFedora Rawhide package metadata · pythran · source: dl.fedoraproject.org
sudo apt install python-pythran-docDebian stable package indexes · python-pythran-doc · source: deb.debian.org
overview
Ahead of Time compiler for numeric kernels
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
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.pythranrcexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
pythran | cli | global executable | |
pythran-config | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://pythran.readthedocs.io/
install metadata
| Package key | brew:pythran |
|---|---|
| Version | 0.19.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/pythran |
| Homepage | https://pythran.readthedocs.io/ |
| Repository | https://github.com/serge-sans-paille/pythran |
| Upstream docs | https://pythran.readthedocs.io/ |
| License | BSD-3-Clause |
| Source archive | https://files.pythonhosted.org/packages/bb/a3/03098a8a5d2c9f801c227cf941d85976934f5f47307ef3d819734370acdc/pythran-0.19.0.tar.gz |
| Last updated | 2026-10-25T08:40:43Z |
| Pulse | updated |
| Dependencies | boost, numpy, openblas, python@3.15, xsimd |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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 pythransource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.