INNER CODE UNIT · Python
check_binaries
XRPLF/rippled · package/build_pkg.py:155
def check_binaries(build_dir: Path) -> None:
"""Fail unless the binaries and their notices are present and runnable."""
missing = [
name
for name in ("xrpld", "validator-keys")
if not os.access(build_dir / name, os.X_OK)
]
assert not missing, (
f"missing or not executable in {build_dir}: {' '.join(missing)}. "
"Both binaries come from a single CMake build directory configured with "
"-Dxrpld=ON -Dvalidator_keys=ON."
)
# No package goes out without the attribution.
notice = build_dir / "validator-keys-LICENSE"
assert notice.is_file(), (
f"missing {notice}. cmake/XrplValidatorKeys.cmake copies it out of the "
"fetched validator-keys-tool source, so reconfigure with -Dvalidator_keys=ON."