diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-07-18 17:48:50 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2016-07-18 17:48:50 -0600 |
commit | bfa4ad3f93608074bacf04c4d9ed0546dd443163 (patch) | |
tree | 6cbdbb331748d10c1dea918fce8c6c029d384b50 /numpy/core/setup.py | |
parent | 055056a3108ab19883e50ac125ab9974823498c7 (diff) | |
download | numpy-bfa4ad3f93608074bacf04c4d9ed0546dd443163.tar.gz |
MAINT: Fix remaining uses of deprecated Python imp module.
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 593b21f6d..32a1a8d60 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -10,9 +10,10 @@ from os.path import join from numpy.distutils import log from distutils.dep_util import newer from distutils.sysconfig import get_config_var -from numpy._build_utils.apple_accelerate import (uses_accelerate_framework, - get_sgemv_fix) - +from numpy._build_utils.apple_accelerate import ( + uses_accelerate_framework, get_sgemv_fix + ) +from numpy.compat import npy_load_module from setup_common import * # Set to True to enable relaxed strides checking. This (mostly) means @@ -386,9 +387,8 @@ def configuration(parent_package='',top_path=None): generate_umath_py = join(codegen_dir, 'generate_umath.py') n = dot_join(config.name, 'generate_umath') - generate_umath = imp.load_module('_'.join(n.split('.')), - open(generate_umath_py, 'U'), generate_umath_py, - ('.py', 'U', 1)) + generate_umath = npy_load_module('_'.join(n.split('.')), + generate_umath_py, ('.py', 'U', 1)) header_dir = 'include/numpy' # this is relative to config.path_in_package |