Classes | |
class | SDist |
Functions | |
def | build_expected_version_hex (matches) |
def | get_and_replace (filename, binary=False, **opts) |
def | TemporaryDirectory () |
def | remove_output (*sources) |
str | build_expected_version_hex (Dict[str, str] matches) |
Union[bytes, str] | get_and_replace (Path filename, bool binary=False, **str opts) |
Iterator[None] | remove_output (*str sources) |
Variables | |
DIR = os.path.abspath(os.path.dirname(__file__)) | |
VERSION_REGEX | |
global_sdist = os.environ.get("PYBIND11_GLOBAL_SDIST", False) | |
string | setup_py = "tools/setup_global.py.in" if global_sdist else "tools/setup_main.py.in" |
string | extra_cmd = 'cmdclass["sdist"] = SDist\n' |
tuple | to_src |
code = compile(f.read(), "pybind11/_version.py", "exec") | |
dictionary | loc = {} |
dictionary | version = loc["__version__"] |
encoding | |
matches = dict(VERSION_REGEX.findall(f.read())) | |
string | cpp_version = "{MAJOR}.{MINOR}.{PATCH}".format(**matches) |
string | msg |
version_hex = matches.get("HEX", "MISSING") | |
def | expected_version_hex = build_expected_version_hex(matches) |
list | cmd |
list | fcommand |
cmake_opts = dict(cwd=DIR, stdout=sys.stdout, stderr=sys.stderr) | |
def | txt = get_and_replace(setup_py, version=version, extra_cmd=extra_cmd) |
VERSION_FILE = Path("pybind11/_version.py") | |
COMMON_FILE = Path("include/pybind11/detail/common.h") | |
str | exp_version_hex = build_expected_version_hex(matches) |
check | |
True | |
cwd | |
stdout | |
stderr | |
def setup.build_expected_version_hex | ( | matches | ) |
def setup.get_and_replace | ( | filename, | |
binary = False , |
|||
** | opts | ||
) |
Definition at line 96 of file setup.py.
Referenced by setup.SDist.make_release_tree().
def setup.remove_output | ( | * | sources | ) |
Iterator[None] setup.remove_output | ( | *str | sources | ) |
Definition at line 115 of file setup.py.
References remove_output().
list setup.cmd |
setup.code = compile(f.read(), "pybind11/_version.py", "exec") |
setup.COMMON_FILE = Path("include/pybind11/detail/common.h") |
string setup.cpp_version = "{MAJOR}.{MINOR}.{PATCH}".format(**matches) |
str setup.exp_version_hex = build_expected_version_hex(matches) |
def setup.expected_version_hex = build_expected_version_hex(matches) |
list setup.fcommand |
setup.global_sdist = os.environ.get("PYBIND11_GLOBAL_SDIST", False) |
string setup.msg |
setup.setup_py = "tools/setup_global.py.in" if global_sdist else "tools/setup_main.py.in" |
tuple setup.to_src |