aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyside_postinstall.py2
-rw-r--r--setup.py4
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",