diff options
| author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2022-10-11 23:36:25 +0200 |
|---|---|---|
| committer | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2022-10-13 15:39:47 +0200 |
| commit | f1e26fd5589ae1a6ce0973b13882b7359b8003e4 (patch) | |
| tree | bd82766d5e49bea046e7e8d5c95cf21550dc5271 /build_scripts/main.py | |
| parent | a662a2343c0edb4c24bad6e132e7d8019a3d5ef7 (diff) | |
build: remove local patchelf
There is a package on PyPi that provides patchelf,
so we can avoid to have an outdated copy locally
and rely on people to install the package.
Change-Id: If30046cda24bc31f38640f943f8ba0f65556232c
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'build_scripts/main.py')
| -rw-r--r-- | build_scripts/main.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py index 94635918c..803519de1 100644 --- a/build_scripts/main.py +++ b/build_scripts/main.py @@ -528,12 +528,8 @@ class PysideBuild(_build, DistUtilsCommandMixin, BuildInfoCollectorMixin): self._patchelf_path = os.path.join(os.getcwd(), self._patchelf_path) log.info(f"Using {self._patchelf_path} ...") return - log.info("Building patchelf...") - module_src_dir = os.path.join(self.sources_dir, "patchelf") - build_cmd = ["g++", f"{module_src_dir}/patchelf.cc", "-o", "patchelf"] - if run_process(build_cmd) != 0: - raise DistutilsSetupError("Error building patchelf") - self._patchelf_path = os.path.join(self.script_dir, "patchelf") + else: + raise DistutilsSetupError("patchelf not found") def _enable_numpy(self): if OPTION["ENABLE_NUMPY_SUPPORT"] or OPTION["PYSIDE_NUMPY_SUPPORT"]: |
