Files
MINGW-packages/mingw-w64-wxPython/0001-wxWidgets-win-from-cygwin.patch
Jeremy Drake ad278e36da wxPython: update to 4.1.1
Based on https://bitbucket.org/ustsv/testpkg_msys2/src/master/mingw-w64-wxpython-phoenix-git/PKGBUILD

Exclude numpy dependency on *-clang-* because it has not been built for
lack of a fortran compiler.
2021-06-14 15:42:20 -07:00

29 lines
1014 B
Diff

--- wxPython-4.1.1/wscript.ORIG 2021-06-12 13:34:52.919243800 -0700
+++ wxPython-4.1.1/wscript 2021-06-12 13:41:18.778905500 -0700
@@ -26,6 +26,7 @@
VERSION = cfg.VERSION
isWindows = sys.platform.startswith('win')
+isWindowsLike = isWindows or sys.platform == 'cygwin'
isDarwin = sys.platform == "darwin"
top = '.'
@@ -302,7 +303,7 @@
# above) and not darwin then we must be using the GTK2 or GTK3 port of
# wxWidgets. If we ever support other ports then this code will need
# to be adjusted.
- if not isDarwin:
+ if not isDarwin and not isWindowsLike:
if conf.options.gtk2:
conf.options.gtk3 = False
if conf.options.gtk2:
@@ -621,7 +622,7 @@
# Modules that are platform-specific
if isDarwin:
makeETGRule(bld, 'etg/_webkit.py', '_webkit', 'WXWEBKIT')
- if isWindows:
+ if isWindowsLike:
makeETGRule(bld, 'etg/_msw.py', '_msw', 'WX')
# ** Add code for new modules here