diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-09-26 20:20:16 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-09-26 20:20:16 +0000 |
commit | 45d01a4be1c4221132ba46d687e6af3a8df3329b (patch) | |
tree | ce3be5290e918def7c7187e747c5460193b0ca85 /scipy/weave/setup_weave.py | |
parent | ccd1c3db37672627aa4fe0fdb5437f5dddc0fe86 (diff) | |
download | numpy-45d01a4be1c4221132ba46d687e6af3a8df3329b.tar.gz |
Moved weave
Diffstat (limited to 'scipy/weave/setup_weave.py')
-rwxr-xr-x | scipy/weave/setup_weave.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/scipy/weave/setup_weave.py b/scipy/weave/setup_weave.py new file mode 100755 index 000000000..972121054 --- /dev/null +++ b/scipy/weave/setup_weave.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python + +import os +from glob import glob +from scipy.distutils.misc_util import get_path, Configuration, dot_join + +def configuration(parent_package='',parent_path=None): + parent_path2 = parent_path + parent_path = parent_package + local_path = get_path(__name__,parent_path2) + config = Configuration('weave',parent_package) + test_path = os.path.join(local_path,'tests') + config.add_subpackage(dot_join(parent_package, 'tests'),test_path) + scxx_files = glob(os.path.join(local_path,'scxx','*.*')) + install_path = os.path.join(parent_path,'weave','scxx') + config.add_data_dir('scxx') + config.add_data_dir(os.path.join('blitz','blitz')) + config.add_data_dir(os.path.join('blitz','blitz','array')) + config.add_data_dir(os.path.join('blitz','blitz','meta')) + config.add_data_files(*glob(os.path.join(local_path,'doc','*.html'))) + config.add_data_files(*glob(os.path.join(local_path,'examples','*.py'))) + return config + +if __name__ == '__main__': + from scipy.distutils.core import setup + from weave_version import weave_version + setup(version = weave_version, + description = "Tools for inlining C/C++ in Python", + author = "Eric Jones", + author_email = "eric@enthought.com", + licence = "SciPy License (BSD Style)", + url = 'http://www.scipy.org', + **configuration(parent_path='')) |