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

Method initialize

numpy/distutils/msvc9compiler.py:43–58  ·  view source on GitHub ↗
(self, plat_name=None)

Source from the content-addressed store, hash-verified

41 _MSVCCompiler.__init__(self, verbose, dry_run, force)
42
43 def initialize(self, plat_name=None):
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, plat_name)
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 def manifest_setup_ldargs(self, output_filename, build_temp, ld_args):
61 ld_args.append('/MANIFEST')

Callers

nothing calls this directly

Calls 1

_mergeFunction · 0.70

Tested by

no test coverage detected