diff options
Diffstat (limited to 'scipy/weave/setup.py')
-rwxr-xr-x | scipy/weave/setup.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/scipy/weave/setup.py b/scipy/weave/setup.py new file mode 100755 index 000000000..e6bee0f5a --- /dev/null +++ b/scipy/weave/setup.py @@ -0,0 +1,42 @@ +#!/usr/bin/env python +import os,sys +from scipy.distutils.core import setup +from scipy.distutils.misc_util import get_path, merge_config_dicts +from scipy.distutils.misc_util import package_config + +from weave_version import weave_version + +def stand_alone_package(with_dependencies = 0): + path = get_path(__name__) + old_path = os.getcwd() + os.chdir(path) + try: + primary = ['weave'] + if with_dependencies: + dependencies= ['scipy.distutils','scipy.test','scipy.base'] + else: + dependencies = [] + + print 'dep:', dependencies + config_dict = package_config(primary,dependencies) + config_dict['name'] = 'weave' + 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', + **config_dict + ) + finally: + os.chdir(old_path) + +if __name__ == '__main__': + import sys + if '--without-dependencies' in sys.argv: + with_dependencies = 0 + sys.argv.remove('--without-dependencies') + else: + with_dependencies = 1 + stand_alone_package(with_dependencies) + |