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

Function win32_checks

numpy/core/setup.py:125–139  ·  view source on GitHub ↗
(deflist)

Source from the content-addressed store, hash-verified

123 return 'NPY_NOSMP' in os.environ
124
125def win32_checks(deflist):
126 from numpy.distutils.misc_util import get_build_architecture
127 a = get_build_architecture()
128
129 # Distutils hack on AMD64 on windows
130 print('BUILD_ARCHITECTURE: %r, os.name=%r, sys.platform=%r' %
131 (a, os.name, sys.platform))
132 if a == 'AMD64':
133 deflist.append('DISTUTILS_USE_SDK')
134
135 # On win32, force long double format string to be 'g', not
136 # 'Lg', since the MS runtime does not support long double whose
137 # size is > sizeof(double)
138 if a == "Intel" or a == "AMD64":
139 deflist.append('FORCE_NO_LONG_DOUBLE_FORMATTING')
140
141def check_math_capabilities(config, ext, moredefs, mathlibs):
142 def check_func(

Callers 1

generate_config_hFunction · 0.85

Calls 2

get_build_architectureFunction · 0.90
printFunction · 0.85

Tested by

no test coverage detected