diff options
author | David Cournapeau <cournape@gmail.com> | 2008-01-07 02:46:49 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-01-07 02:46:49 +0000 |
commit | f7f3de7be2448d57111bd9c47d46253f6a0e5d3d (patch) | |
tree | fc95c6f511367b0c639cbaac60b37b50443fcb3c | |
parent | 2bcb222f37f7c4912ee6e5f99c75e25beceb7de7 (diff) | |
download | numpy-f7f3de7be2448d57111bd9c47d46253f6a0e5d3d.tar.gz |
numarray now builds with scons
-rw-r--r-- | numpy/numarray/SConstruct | 12 | ||||
-rw-r--r-- | numpy/numarray/setupscons.py | 14 |
2 files changed, 26 insertions, 0 deletions
diff --git a/numpy/numarray/SConstruct b/numpy/numarray/SConstruct new file mode 100644 index 000000000..aa780be87 --- /dev/null +++ b/numpy/numarray/SConstruct @@ -0,0 +1,12 @@ +# Last Change: Fri Oct 19 09:00 AM 2007 J +# vim:syntax=python +import __builtin__ +__builtin__.__NUMPY_SETUP__ = True +from numpy.distutils.misc_util import get_numpy_include_dirs +from numscons import GetNumpyEnvironment, scons_get_paths + +env = GetNumpyEnvironment(ARGUMENTS) +env.Append(CPPPATH = scons_get_paths(env['include_bootstrap'])) +env.Append(CPPPATH = env['src_dir']) + +_capi = env.NumpyPythonExtension('_capi', source = ['_capi.c']) diff --git a/numpy/numarray/setupscons.py b/numpy/numarray/setupscons.py new file mode 100644 index 000000000..37d53a8ef --- /dev/null +++ b/numpy/numarray/setupscons.py @@ -0,0 +1,14 @@ +from os.path import join + +def configuration(parent_package='',top_path=None): + from numpy.distutils.misc_util import Configuration + config = Configuration('numarray',parent_package,top_path) + + config.add_data_files('numpy/') + config.add_sconscript('SConstruct', source_files = ['_capi.c']) + + return config + +if __name__ == '__main__': + from numpy.distutils.core import setup + setup(configuration=configuration) |