Menu

[r7147]: / trunk / matplotlib / release / win32 / data / setupwin.py  Maximize  Restore  History

Download this file

18 lines (14 with data), 471 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
from distutils import cygwinccompiler
try:
# Python 2.6
# Replace the msvcr func to return an empty list
cygwinccompiler.get_msvcr
cygwinccompiler.get_msvcr = lambda: []
except AttributeError:
# Before Python 2.6
# Wrap the init func to clear to dll libs
def new_init(self, **kwargs):
cygwinccompiler.CygwinCCompiler.__init__(self, **kwargs)
self.dll_libraries = []
cygwinccompiler.CygwinCCompiler.__init__ = new_init
execfile('setup.py')