diff options
author | David Cournapeau <cournape@gmail.com> | 2008-08-03 09:48:55 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-08-03 09:48:55 +0000 |
commit | be0d287b2b23b89e5bf121558fc5ee4ea97710c2 (patch) | |
tree | aabf8cd27dd38b3733b6b642d179fab08997a68b /numpy/core/setupscons.py | |
parent | f20624ae964aa6862b901de2b40d31e9b51cc4d5 (diff) | |
download | numpy-be0d287b2b23b89e5bf121558fc5ee4ea97710c2.tar.gz |
Fix generated file location for inclusion in sdist target when building with scons.
Diffstat (limited to 'numpy/core/setupscons.py')
-rw-r--r-- | numpy/core/setupscons.py | 14 |
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)) |