diff options
author | Roman Lacko <backup.rlacko@gmail.com> | 2013-05-21 22:06:11 +0200 |
---|---|---|
committer | Roman Lacko <backup.rlacko@gmail.com> | 2013-05-21 22:06:11 +0200 |
commit | 8bcb735daefa028d7c619284833c2f1ffb021eb1 (patch) | |
tree | 2bea330102ee02025d7ea5551444bb9dde84a1dc | |
parent | 2ba809fd8ed78eaa28d5d26ac61eac4e3f64ea60 (diff) |
Fixed platform name checking
-rw-r--r-- | pyside_postinstall.py | 2 | ||||
-rw-r--r-- | 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
@@ -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", |