Files
frida-tools/set_dist_version.py
T
Ole André Vadla Ravnås 132fb433b5 Switch back to meson-python
Publishing will be done from CI using trusted publishing, so the twine
issue that made us revert to setuptools no longer applies.

Also install tracer_ui.zip where the tracer expects it, and make the
wrapper scripts optional so they don't end up in wheels, which get
theirs from the entry points.
2026-11-05 20:46:10 +01:00

35 lines
663 B
Python
Executable File

#!/usr/bin/env python3
import argparse
import os
import shlex
import subprocess
def main() -> None:
parser = argparse.ArgumentParser()
parser.add_argument("version", type=str)
args = parser.parse_args()
set_dist_version(args.version)
def set_dist_version(version: str) -> None:
subprocess.run(
[
*shlex.split(os.environ["MESONREWRITE"]),
"--sourcedir",
os.environ["MESON_PROJECT_DIST_ROOT"],
"kwargs",
"set",
"project",
"/",
"version",
version,
],
check=True,
)
if __name__ == "__main__":
main()