removed a few occurrences of 'linux2' in python files

metadata
Wenzel Jakob 2012-10-20 18:14:24 -04:00
parent d161aa6490
commit b5245c4cf6
1 changed files with 10 additions and 10 deletions

View File

@ -446,7 +446,7 @@ def enable_modules(self, modules, debug=False, crosscompiling=False) :
try : self.AppendUnique(CPPDEFINES=moduleDefines[module])
except: pass
debugSuffix = ''
if sys.platform in ["darwin", "linux2"] and not crosscompiling :
if (sys.platform=='darwin' or sys.platform.startswith('linux2')) and not crosscompiling :
if debug : debugSuffix = '_debug'
for module in modules :
if module not in pclessModules : continue
@ -461,7 +461,7 @@ def enable_modules(self, modules, debug=False, crosscompiling=False) :
self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt4","QtAssistant")])
pcmodules.remove("QtAssistant")
pcmodules.append("QtAssistantClient")
if sys.platform == 'linux2':
if sys.platform.startswith('linux'):
self.ParseConfig('pkg-config %s --libs --cflags'% ' '.join(pcmodules))
elif sys.platform == 'darwin':
for module in pcmodules: