From a924955831dbd0306e935e89541b21ffe8f60a96 Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Sat, 15 Aug 2026 10:12:04 -0700 Subject: [PATCH 1/2] added note about ninja_syntax names being in the ninja namespace. --- README.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.rst b/README.rst index 88b465a..85e063b 100644 --- a/README.rst +++ b/README.rst @@ -7,6 +7,12 @@ Ninja Python Distributions The latest Ninja python wheels provide `ninja 1.13.0.gd74ef.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 accesable via ``import ninja``, e.g. :: + + import ninja + writer = ninja.Writer(sys.stdout) + + .. image:: https://raw.githubusercontent.com/scikit-build/ninja-python-distributions/master/ninja-python-distributions-logo.png Latest Release From 9138609df26fe5fbbfc25620b1d52c752604cd7d Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Sat, 15 Aug 2026 10:30:39 -0700 Subject: [PATCH 2/2] added a note about python-m as well. --- README.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.rst b/README.rst index 85e063b..c43c9f2 100644 --- a/README.rst +++ b/README.rst @@ -12,6 +12,11 @@ The classes in ninja_syntax are in the ninja namespace, so are accesable via ``i import ninja writer = ninja.Writer(sys.stdout) +This package also installs a front-end to the nijnja executable, so that:: + + python -m ninja + +will call the executable. .. image:: https://raw.githubusercontent.com/scikit-build/ninja-python-distributions/master/ninja-python-distributions-logo.png