summaryrefslogtreecommitdiff
path: root/numpy/random/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/random/setup.py')
-rw-r--r--numpy/random/setup.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/random/setup.py b/numpy/random/setup.py
index 394a70ead..481c4e380 100644
--- a/numpy/random/setup.py
+++ b/numpy/random/setup.py
@@ -2,6 +2,9 @@ from __future__ import division, print_function
from os.path import join
import sys
+import os
+import platform
+import struct
from distutils.dep_util import newer
from distutils.msvccompiler import get_build_version as get_msvc_build_version
@@ -16,6 +19,7 @@ def needs_mingw_ftime_workaround():
return False
+
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration, get_mathlibs
config = Configuration('random', parent_package, top_path)
@@ -40,6 +44,7 @@ def configuration(parent_package='',top_path=None):
defs.append(("NPY_NEEDS_MINGW_TIME_WORKAROUND", None))
libs = []
+ defs.append(('NPY_NO_DEPRECATED_API', 0))
# Configure mtrand
config.add_extension('mtrand',
sources=[join('mtrand', x) for x in
@@ -55,9 +60,9 @@ def configuration(parent_package='',top_path=None):
config.add_data_files(('.', join('mtrand', 'randomkit.h')))
config.add_data_dir('tests')
+ config.add_subpackage('randomgen')
return config
-
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(configuration=configuration)