From dd91755c66d127165fff712f3d67538131193f0c Mon Sep 17 00:00:00 2001 From: bruntib Date: Thu, 10 Aug 2023 16:00:27 +0200 Subject: [PATCH] [bugfix] Include platform to ldlogger.so path A previous improvement in commit db924b02 requires that ldlogger.so file is available in a directory named the current platform. When building a Python package from CodeChecker, this ldlogger.so is not placed in such a directory. This patch fixes this issue. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ef7c27276c..4fc87f4f3d 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import os +import platform import setuptools import subprocess import sys @@ -102,7 +103,7 @@ def init_packages(): class BuildExt(build_ext): def get_ext_filename(self, ext_name): - return f"{os.path.join(*ext_name.split('.'))}.so" + return os.path.join(platform.uname().machine, f"{ext_name}.so") def build_extension(self, ext): if sys.platform == "linux":