Rebuild/update packages for Python 3.5.0 support

This commit is contained in:
Alexey Pavlov
2015-10-09 12:34:07 +03:00
parent b4811486ef
commit d91becad51
46 changed files with 176 additions and 251 deletions

View File

@@ -56,7 +56,7 @@
return ext
@@ -247,11 +255,11 @@
@@ -247,16 +255,16 @@
"""
Determines whether pkg-config exists on this machine.
"""
@@ -64,9 +64,14 @@
+ if sys.platform == 'win32' and not MSYS:
self.has_pkgconfig = False
else:
try:
self.pkg_config = os.environ['PKG_CONFIG']
except KeyError:
self.pkg_config = 'pkg-config'
self.set_pkgconfig_path()
- status, output = getstatusoutput("pkg-config --help")
+ status, output = getstatusoutput('sh -c "pkg-config --help"')
- status, output = getstatusoutput(self.pkg_config + " --help")
+ status, output = getstatusoutput('sh -c "'+self.pkg_config+' --help"')
self.has_pkgconfig = (status == 0)
if not self.has_pkgconfig:
print("IMPORTANT WARNING:")
@@ -102,8 +107,8 @@
return None
status, output = getstatusoutput(
- "pkg-config %s --modversion" % (package))
+ 'sh -c "pkg-config %s --modversion"' % (package))
- self.pkg_config + " %s --modversion" % (package))
+ 'sh -c "'+self.pkg_config+' %s --modversion"' % (package))
if status == 0:
return output
return None