From 8bcb735daefa028d7c619284833c2f1ffb021eb1 Mon Sep 17 00:00:00 2001 From: Roman Lacko Date: Tue, 21 May 2013 22:06:11 +0200 Subject: Fixed platform name checking --- pyside_postinstall.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyside_postinstall.py b/pyside_postinstall.py index f4dfba1fe..0b1a7979a 100644 --- a/pyside_postinstall.py +++ b/pyside_postinstall.py @@ -192,7 +192,7 @@ def install_posix(): print("PySide package found in %s..." % pyside_path) executables = ['shiboken'] - if sys.platform == 'linux2': + if sys.platform.startswith('linux'): executables.append('patchelf') patchelf_path = os.path.join(pyside_path, "patchelf") from distutils.spawn import spawn diff --git a/setup.py b/setup.py index 398b38fe8..722fa81ba 100644 --- a/setup.py +++ b/setup.py @@ -458,7 +458,7 @@ class pyside_build(_build): _build.run(self) def build_patchelf(self): - if sys.platform != "linux2": + if not sys.platform.startswith('linux'): return log.info("Building patchelf...") module_src_dir = os.path.join(self.sources_dir, "patchelf") @@ -570,7 +570,7 @@ class pyside_build(_build): return self.prepare_packages_posix(vars) def prepare_packages_posix(self, vars): - if sys.platform == 'linux2': + if sys.platform.startswith('linux'): # patchelf -> PySide/patchelf copyfile( "{script_dir}/patchelf", -- cgit v1.2.3