From 37588948ebd986b777a3067341030189140f1199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Tue, 23 Apr 2024 22:13:31 +0200 Subject: [PATCH] setup: Fix version detection when subproject --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 180fb2d..a4f0f43 100755 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ def detect_version(): if line.startswith("Version: ")][0].strip() version = version_line[9:] else: - sys.path.insert(0, str(PACKAGE_DIR)) + sys.path.insert(0, os.environ.get("MESON_SOURCE_ROOT", str(PACKAGE_DIR))) from releng.frida_version import detect version = detect(PACKAGE_DIR).name.replace("-dev.", ".dev") return version