py-pyside: fix setup files to support python 3.5. (#13613)

This fix already exists in the development branch of pyside. See
https://github.com/pyside/pyside-setup/pull/55.
This commit is contained in:
Kelly (KT) Thompson 2019-11-07 15:43:49 -06:00 committed by Adam J. Stewart
parent 8139d7cb69
commit 719ebd18c3

View File

@ -42,6 +42,17 @@ def patch(self):
rpath.append(os.path.join(
self.prefix, pypkg.site_packages_dir, 'PySide'))
# Fix subprocess.mswindows check for Python 3.5
# https://github.com/pyside/pyside-setup/pull/55
filter_file(
'^if subprocess.mswindows:',
'mswindows = (sys.platform == "win32")\r\nif mswindows:',
"popenasync.py")
filter_file(
'^ if subprocess.mswindows:',
' if mswindows:',
"popenasync.py")
# Add Spack's standard CMake args to the sub-builds.
# They're called BY setup.py so we have to patch it.
filter_file(