Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bill Hoffman
autopybind11
Commits
0c8be360
Commit
0c8be360
authored
May 20, 2020
by
Joe Snyder
Browse files
Switch python file name
From generator.py to autopybind11.py
parent
a41fb8fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
AutoPyBind11Config.cmake
View file @
0c8be360
...
...
@@ -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"
)
README.rst
View file @
0c8be360
...
...
@@ -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::
...
...
generator
.py
→
autopybind11
.py
View file @
0c8be360
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment