Commit 0c8be360 authored by Joe Snyder's avatar Joe Snyder
Browse files

Switch python file name

From generator.py to autopybind11.py
parent a41fb8fd
......@@ -7,6 +7,6 @@
#
include(FetchContent)
set(AutoPyBind11_INSTALL "${AutoPyBind11_DIR}")
set(AutoPyBind11_generator "${AutoPyBind11_DIR}/generator.py")
set(AutoPyBind11_generator "${AutoPyBind11_DIR}/autopybind11.py")
include("${AutoPyBind11_DIR}/PyBindHelper.cmake")
......@@ -38,8 +38,8 @@ Running the Generator
This script assumes that Python 3.* is used.
The Python script has help for the arguments::
$ python3 generator.py -h
usage: generator.py [-h] [-s SOURCE_DIR] [-j JSON_PATH] -g CASTXML_PATH
$ python3 autopybind11.py -h
usage: autopybind11.py [-h] [-s SOURCE_DIR] [-j JSON_PATH] -g CASTXML_PATH
[--includes INCLUDES] [--no-generation] [-cg CONFIG_DIR]
optional arguments:
......@@ -60,7 +60,7 @@ The Python script has help for the arguments::
To run over the entirety of the local example, we use a command like this::
$ python3 generator.py -g ~/Work/TRI/CastXML/build/bin/castxml -s ~/Work/TRI/wrapper_generator/example/
$ python3 autopybind11.py -g ~/Work/TRI/CastXML/build/bin/castxml -s ~/Work/TRI/wrapper_generator/example/
which would output a single C++ files of wrapper code called ``test_py.cpp``
......@@ -88,7 +88,7 @@ These options can be set either CMake GUIs or on the command line::
$ cmake -DDEFINE_TEST_PARAM=ON .... <path/to>/wrapper_generator
The ``generator.py`` script will be run as a part of the ``Configure`` step in
The ``autopybind11.py`` script will be run as a part of the ``Configure`` step in
of CMake.
Style Checking / Linting
......@@ -99,7 +99,7 @@ can be installed via the ``pip`` program.
The program should be run at the top level so that the ``setup.cfg`` in the
repository is available. An example run is as follows::
$ pycodestyle generator.py
$ pycodestyle autopybind11.py
or setup a CMake build system and execute the ``WG_Linter`` test::
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment