Return True if the NPY_NO_SMP symbol must be defined in public header (when SMP support cannot be reliably enabled).
()
| 112 | return sys.platform == 'win32' |
| 113 | |
| 114 | def is_npy_no_smp(): |
| 115 | """Return True if the NPY_NO_SMP symbol must be defined in public |
| 116 | header (when SMP support cannot be reliably enabled).""" |
| 117 | # Perhaps a fancier check is in order here. |
| 118 | # so that threads are only enabled if there |
| 119 | # are actually multiple CPUS? -- but |
| 120 | # threaded code can be nice even on a single |
| 121 | # CPU so that long-calculating code doesn't |
| 122 | # block. |
| 123 | return 'NPY_NOSMP' in os.environ |
| 124 | |
| 125 | def win32_checks(deflist): |
| 126 | from numpy.distutils.misc_util import get_build_architecture |
no outgoing calls
no test coverage detected