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 /setup.py | |
parent | 2ba809fd8ed78eaa28d5d26ac61eac4e3f64ea60 (diff) |
Fixed platform name checking
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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", |