File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,18 +75,18 @@ To generate the source code for the C extension, you would run:
7575
7676 $ python -m cffi.buildtool exec-python _squared_build.py _squared.c
7777
78- Many CFFI build scripts have an ``if __name__ == "__main__" `` section
78+ Many CFFI FFI definition scripts have an ``if __name__ == "__main__" `` section
7979that triggers a compilation step. This is not needed for a
8080``cffi.buildtool `` script, which does not generate compiled artifacts,
8181only C source code. It is up to your build-backend of choice
8282(e.g. meson-python) to run a C compiler and build compiled artifacts.
8383If the script does have such a section it is harmless: the script is
8484executed with ``__name__ `` set to ``"cffi.buildtool" ``, so the block is
85- skipped and an existing build script works unchanged.
85+ skipped and an existing FFI definition script works unchanged.
8686
8787If the :class: `cffi.FFI ` is bound to a name other than ``ffibuilder ``, pass
88- ``--ffi-var ``. To make that concrete, let's say your build script creates an FFI
89- object named ``make_ffi ``::
88+ ``--ffi-var ``. To make that concrete, let's say your FFI definition script
89+ creates an FFI object named ``make_ffi ``::
9090
9191 from cffi import FFI
9292
You can’t perform that action at this time.
0 commit comments