diff options
-rw-r--r-- | numpy/core/npymath.ini.in | 3 | ||||
-rw-r--r-- | numpy/core/setup.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/numpy/core/npymath.ini.in b/numpy/core/npymath.ini.in index 73379e47c..a233b8f3b 100644 --- a/numpy/core/npymath.ini.in +++ b/numpy/core/npymath.ini.in @@ -4,7 +4,8 @@ Description=Portable, core math library implementing C99 standard Version=0.1 [variables] -prefix=@prefix@ +pkgname=@pkgname@ +prefix=${pkgdir} libdir=${prefix}@sep@lib includedir=${prefix}@sep@include diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 4981702de..66b6bffef 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -655,7 +655,7 @@ def configuration(parent_package='',top_path=None): # explicitly add an extension which has generate_config_h and # generate_numpyconfig_h as sources *before* adding npymath. - subst_dict = dict([("sep", os.path.sep)]) + subst_dict = dict([("sep", os.path.sep), ("pkgname", "numpy.core")]) def get_mathlib_info(*args): # Another ugly hack: the mathlib info is known once build_src is run, # but we cannot use add_installed_pkg_config here either, so we only |