|
38 | 38 | 'linux2' : ['/usr/local', '/usr',], |
39 | 39 | 'linux' : ['/usr/local', '/usr',], |
40 | 40 | 'cygwin' : ['/usr/local', '/usr',], |
41 | | - # Charles Moad recommends not putting in /usr/X11R6 for darwin |
42 | | - # because freetype in this dir is too old for mpl |
43 | 41 | 'darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/local', |
44 | 42 | '/usr', '/sw'], |
45 | 43 | 'freebsd4' : ['/usr/local', '/usr'], |
@@ -253,6 +251,10 @@ def add_wx_flags(module, wxconfig): |
253 | 251 | """ |
254 | 252 | Add the module flags to build extensions which use wxPython. |
255 | 253 | """ |
| 254 | + |
| 255 | + if sys.platform == 'win32': # just added manually |
| 256 | + module.libraries.extend(['wxmsw26', 'wxpng', 'wxregex', 'wxzlib', 'wxexpat', 'wxjpeg', 'wxtiff']) |
| 257 | + return |
256 | 258 |
|
257 | 259 | def getWX(fmt, *args): |
258 | 260 | return getoutput(wxconfig + ' ' + (fmt % args)).split() |
@@ -494,7 +496,10 @@ def build_wxagg(ext_modules, packages, numerix, abortOnFailure): |
494 | 496 |
|
495 | 497 | # Avoid aborting the whole build process if `wx-config' can't be found and |
496 | 498 | # BUILD_WXAGG in setup.py is set to "auto" |
497 | | - if wxconfig is None: |
| 499 | + if sys.platform == 'win32': |
| 500 | + pass # don't need config |
| 501 | + |
| 502 | + elif wxconfig is None: |
498 | 503 | print """ |
499 | 504 | WXAgg's accelerator requires `wx-config'. |
500 | 505 |
|
|
0 commit comments