diff options
author | Kevin Sheppard <kevin.k.sheppard@gmail.com> | 2019-05-18 23:47:51 +0100 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-05-20 19:00:38 +0300 |
commit | b42a5ca0a076b40c612014dc540ca5f9bcf10f41 (patch) | |
tree | 339ed4a67923d7f27357b2aa6d997b14990efe26 /numpy/random/setup.py | |
parent | 17e0070df93f4262908f884dca4b08cb7d0bba7f (diff) | |
download | numpy-b42a5ca0a076b40c612014dc540ca5f9bcf10f41.tar.gz |
BUG: Ensure integer-type stream on 32bit
Ensure integer type is stream compatible on 32 bit
Fix incorrect clause end
Add integer-generator tests that check long streams
Diffstat (limited to 'numpy/random/setup.py')
-rw-r--r-- | numpy/random/setup.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/random/setup.py b/numpy/random/setup.py index 5f3a48783..3c9b3289f 100644 --- a/numpy/random/setup.py +++ b/numpy/random/setup.py @@ -84,9 +84,8 @@ def configuration(parent_package='',top_path=None): if DEBUG: EXTRA_LINK_ARGS += ['-debug'] EXTRA_COMPILE_ARGS += ["-Zi", "/Od"] - if sys.version_info < (3, 0): - EXTRA_INCLUDE_DIRS += [join(MOD_DIR, 'src', 'common')] + LEGACY_DEFS = [('NP_RANDOM_LEGACY', '1')] DSFMT_DEFS = [('DSFMT_MEXP', '19937')] if USE_SSE2: if os.name == 'nt': @@ -180,7 +179,7 @@ def configuration(parent_package='',top_path=None): extra_compile_args=EXTRA_COMPILE_ARGS, extra_link_args=EXTRA_LINK_ARGS, depends=['mtrand.pyx'], - define_macros=defs + DSFMT_DEFS, + define_macros=defs + DSFMT_DEFS + LEGACY_DEFS, ) return config |