meson
A high performance build system
What it is and what it does
Meson is a next-generation build system that reads declarative build definitions from meson.build files and generates build instructions. It emphasizes clarity and speed by using a modern configuration language and delegating execution to external build backends. The package itself is a Python tool that processes your build configuration and produces the necessary build artifacts.
You use Meson by creating a meson.build file in your project root that describes your targets and build options, then run `meson setup builddir` to generate a build directory. The system supports multiple operating systems including Linux, macOS, Windows, and BSD. It is classified as Production/Stable and has been actively maintained since its first release in 2016.
Use it for:
- Set up build systems for projects that need to work identically across Linux, macOS, Windows, and BSD.
- Define and run unit tests as part of the build process after compilation.
- Manage projects with complex build configurations using a declarative, modern syntax.
- Automate build setup in continuous integration pipelines where reproducible builds are critical.
- Configure builds for projects requiring Python 3.10 or newer environments.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Meson is a build system that reads declarative meson.build configuration files and generates build files to orchestrate compilation and testing of projects.
Yes. Meson is production-stable, actively maintained, permissively licensed under Apache License, Version 2.0, and has no known security vulnerabilities. Install it if you need a build system for projects targeting Python 3.10 or newer. The main prerequisite is ensuring Python 3.10+ is available in your environment.
Install
meson on PyPI
pip
pip install mesonuv
uv add mesonpoetry
poetry add mesonInstalling meson
Before you install
Installation is straightforward with no runtime dependencies. The project is actively maintained with a recent release (4 days since last release) and strong community engagement (6603 GitHub stars).
License in practice
Licensed under Apache License, Version 2.0 (permissive), which allows commercial and private use with minimal restrictions.
Quickstart
pip install meson
# In your project directory with meson.build:
meson setup builddir
cd builddir
meson compile
Requires Python 3.10 or newer. Requires version 1.8.2 or newer of an external build backend to execute generated build files.
Verify before relying
- Whether Meson's learning curve or configuration complexity is suitable for small projects versus large codebases.
- Performance characteristics compared to other build systems in typical project scenarios.
- Which languages and project types Meson is optimized for beyond the general build orchestration role.
Package facts
| License | Apache License, Version 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 17,979,399/month — #1,096 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: meson-1.12.0-py3-none-any.whl
Keywords: meson, mesonbuild, build system, cmake
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
meson-pythonmeson-python is a PEP 517 build backend that…
permissive · top 5,000 on PyPI
spinspin is a command-line tool that abstracts…
permissive · top 15,000 on PyPI
ninjaDistributes the Ninja 1.13.0 build system as…
permissive · top 1,000 on PyPI
SConsSCons is a Python-based build system that…
permissive · top 5,000 on PyPI
scikit-build-coreA build backend that uses CMake to compile…
permissive · top 5,000 on PyPI
scan-buildRuns the Clang static analyzer on C/C++…
permissive · top 15,000 on PyPI
json-timeseriesConstructs, manipulates, and serializes time…
permissive · top 15,000 on PyPI
ansible-builderAnsible Builder automates the creation of…
permissive · top 15,000 on PyPI
pexPex generates standalone, executable Python…
permissive · top 5,000 on PyPI
dwave-optimizationFormulates nonlinear optimization models…
permissive · top 15,000 on PyPI