summaryrefslogtreecommitdiff
path: root/numpy/core/setupscons.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/setupscons.py')
-rw-r--r--numpy/core/setupscons.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/numpy/core/setupscons.py b/numpy/core/setupscons.py
index f34495a32..322b341e3 100644
--- a/numpy/core/setupscons.py
+++ b/numpy/core/setupscons.py
@@ -9,6 +9,7 @@ from numscons import get_scons_build_dir
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration,dot_join
+ from numpy.distutils.command.scons import get_scons_pkg_build_dir
from numpy.distutils.system_info import get_info, default_lib_dirs
config = Configuration('core',parent_package,top_path)
@@ -40,7 +41,7 @@ def configuration(parent_package='',top_path=None):
# XXX: I really have to think about how to communicate path info
# between scons and distutils, and set the options at one single
# location.
- target = join(scons_build_dir, local_dir, 'config.h')
+ target = join(get_scons_pkg_build_dir(config.name), 'config.h')
incl_dir = os.path.dirname(target)
if incl_dir not in config.numpy_include_dirs:
config.numpy_include_dirs.append(incl_dir)
@@ -50,7 +51,8 @@ def configuration(parent_package='',top_path=None):
# XXX: I really have to think about how to communicate path info
# between scons and distutils, and set the options at one single
# location.
- target = join(scons_build_dir, local_dir, 'include/numpy/numpyconfig.h')
+ target = join(get_scons_pkg_build_dir(config.name),
+ 'include/numpy/numpyconfig.h')
incl_dir = os.path.dirname(target)
if incl_dir not in config.numpy_include_dirs:
config.numpy_include_dirs.append(incl_dir)
@@ -61,8 +63,8 @@ def configuration(parent_package='',top_path=None):
# XXX: I really have to think about how to communicate path info
# between scons and distutils, and set the options at one single
# location.
- h_file = join(scons_build_dir, local_dir, '__multiarray_api.h')
- t_file = join(scons_build_dir, local_dir, 'multiarray_api.txt')
+ h_file = join(get_scons_pkg_build_dir(config.name), '__multiarray_api.h')
+ t_file = join(get_scons_pkg_build_dir(config.name), 'multiarray_api.txt')
config.add_data_files((header_dir, h_file),
(header_dir, t_file))
@@ -71,8 +73,8 @@ def configuration(parent_package='',top_path=None):
# XXX: I really have to think about how to communicate path info
# between scons and distutils, and set the options at one single
# location.
- h_file = join(scons_build_dir, local_dir, '__ufunc_api.h')
- t_file = join(scons_build_dir, local_dir, 'ufunc_api.txt')
+ h_file = join(get_scons_pkg_build_dir(config.name), '__ufunc_api.h')
+ t_file = join(get_scons_pkg_build_dir(config.name), 'ufunc_api.txt')
config.add_data_files((header_dir, h_file),
(header_dir, t_file))