Skip to content

Commit

Permalink
setup: Fix version detection when subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Apr 23, 2024
1 parent 61fbf13 commit 3758894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3758894

Please sign in to comment.