@@ -5,7 +5,8 @@ Using via ``scikit-build``
55============================
66
77``scikit-build `` provides two separate concepts geared towards the users of Python extension modules.
8- 1. A ``setuptools `` replacement
8+
9+ 1. A ``setuptools `` replacement (legacy behaviour)
9102. A series of ``cmake `` modules with definitions which help building Python extensions
1011
1112.. note ::
@@ -53,6 +54,13 @@ The resulting extension can be built and loaded in the standard workflow.
5354 ``setuptools `` replacement
5455^^^^^^^^^^^^^^^^^^^^^^^^^^^
5556
57+ .. note ::
58+
59+ **As of November 2021 **
60+
61+ The behavior described here of driving the ``cmake `` build of a module is
62+ considered to be legacy behaviour and should not be depended on.
63+
5664The utility of ``scikit-build `` lies in being able to drive the generation of
5765more than extension modules, in particular a common usage pattern is the
5866generation of Python distributables (for example for PyPI).
@@ -62,13 +70,15 @@ The workflow with ``scikit-build`` straightforwardly supports such packaging req
6270.. literalinclude :: ./../code/setup_skbuild.py
6371 :language: python
6472
65- Along with a commiserate ``pyproject.toml ``
73+ Along with a commensurate ``pyproject.toml ``
6674
6775.. literalinclude :: ./../code/pyproj_skbuild.toml
6876 :language: toml
6977
7078Together these can build the extension using ``cmake `` in tandem with other
71- standard ``setuptools `` outputs.
79+ standard ``setuptools `` outputs. Running ``cmake `` through ``setup.py `` is
80+ mostly used when it is necessary to integrate with extension modules not built
81+ with ``cmake ``.
7282
7383.. code :: bash
7484
0 commit comments