Classes | |
class | build_ext |
class | ParallelCompile |
class | Pybind11Extension |
Functions | |
def | tmp_chdir () |
def | has_flag (compiler, flag) |
def | auto_cpp_level (compiler) |
def | naive_recompile (obj, src) |
def | no_recompile (obg, src) |
Variables | |
WIN | |
PY2 | |
MACOS | |
STD_TMPL | |
tmp_chdir_lock | |
cpp_cache_lock | |
cpp_flag_cache | |
def pybind11.setup_helpers.auto_cpp_level | ( | compiler | ) |
Return the max supported C++ std level (17, 14, or 11). Returns latest on Windows.
Definition at line 256 of file setup_helpers.py.
def pybind11.setup_helpers.has_flag | ( | compiler, | |
flag | |||
) |
Return the flag if a flag name is supported on the specified compiler, otherwise None (can be used as a boolean). If multiple flags are passed, return the first that matches.
Definition at line 232 of file setup_helpers.py.
def pybind11.setup_helpers.naive_recompile | ( | obj, | |
src | |||
) |
This will recompile only if the source file changes. It does not check header files, so a more advanced function or Ccache is better if you have editable header files in your package.
Definition at line 305 of file setup_helpers.py.
def pybind11.setup_helpers.no_recompile | ( | obg, | |
src | |||
) |
This is the safest but slowest choice (and is the default) - will always recompile sources.
Definition at line 314 of file setup_helpers.py.
def pybind11.setup_helpers.tmp_chdir | ( | ) |
Definition at line 216 of file setup_helpers.py.
pybind11.setup_helpers.cpp_cache_lock |
Definition at line 212 of file setup_helpers.py.
pybind11.setup_helpers.cpp_flag_cache |
Definition at line 253 of file setup_helpers.py.
pybind11.setup_helpers.MACOS |
Definition at line 64 of file setup_helpers.py.
pybind11.setup_helpers.PY2 |
Definition at line 63 of file setup_helpers.py.
pybind11.setup_helpers.STD_TMPL |
Definition at line 65 of file setup_helpers.py.
pybind11.setup_helpers.tmp_chdir_lock |
Definition at line 211 of file setup_helpers.py.
pybind11.setup_helpers.WIN |
Definition at line 62 of file setup_helpers.py.