Ninja is a small build system with a focus on speed.
The latest Ninja python wheels provide ninja 1.13.2.g7659b.kitware.jobserver-pipe-1 executable and ninja_syntax.py for generating .ninja files.
The classes in ninja_syntax are in the ninja namespace, so are accessible via import ninja, e.g.
import ninja writer = ninja.Writer(sys.stdout)
This package also installs a front-end to the ninja executable, so that:
python -m ninja
will call the executable. You can also call it from Python with ninja.ninja(),
which forwards sys.argv and exits with the ninja return code. The directory that
holds the executable is available as ninja.BIN_DIR.
The package does not provide Python bindings to the ninja build engine itself. It only
distributes the executable and the upstream ninja_syntax.py helper. Since
this is only a redistribution, and should not be required if ninja is already
present, it is not the right place for bindings.
| Versions | Downloads |
|---|---|
| GitHub Actions (Windows, macOS, Linux) | |
|---|---|
| PyPI |
- Documentation: https://github.com/scikit-build/ninja-python-distributions#readme
- Source code: https://github.com/scikit-build/ninja-python-distributions
- Mailing list: https://groups.google.com/forum/#!forum/scikit-build
Versions after 1.11.1.1 no longer support Python 2-3.6, and require manylinux2010+ on linux. Versions after 1.13 no longer support Python 3.7, and require manylinux2014+/musllinux_1_2+ on linux.
This project is maintained by Jean-Christophe Fillion-Robin from Kitware Inc. It is covered by the Apache License, Version 2.0.
Ninja is also distributed under the Apache License, Version 2.0. For more information about Ninja, visit https://ninja-build.org
Logo was originally created by Libby Rose from Kitware Inc. It is covered by CC BY 4.0.
