(deflist)
| 123 | return 'NPY_NOSMP' in os.environ |
| 124 | |
| 125 | def 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 | |
| 141 | def check_math_capabilities(config, ext, moredefs, mathlibs): |
| 142 | def check_func( |
no test coverage detected