MCPcopy Create free account
hub / github.com/numpy/numpy / initialize

Method initialize

numpy/distutils/msvccompiler.py:43–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 _MSVCCompiler.__init__(self, verbose, dry_run, force)
42
43 def initialize(self):
44 # The 'lib' and 'include' variables may be overwritten
45 # by MSVCCompiler.initialize, so save them for later merge.
46 environ_lib = os.getenv('lib', '')
47 environ_include = os.getenv('include', '')
48 _MSVCCompiler.initialize(self)
49
50 # Merge current and previous values of 'lib' and 'include'
51 os.environ['lib'] = _merge(environ_lib, os.environ['lib'])
52 os.environ['include'] = _merge(environ_include, os.environ['include'])
53
54 # msvc9 building for 32 bits requires SSE2 to work around a
55 # compiler bug.
56 if platform_bits == 32:
57 self.compile_options += ['/arch:SSE2']
58 self.compile_options_debug += ['/arch:SSE2']
59
60
61def lib_opts_if_msvc(build_cmd):

Callers 4

_link_wrapper_libMethod · 0.45
_check_compilerMethod · 0.45
have_compilerFunction · 0.45

Calls 1

_mergeFunction · 0.70

Tested by 1

have_compilerFunction · 0.36