summaryrefslogtreecommitdiff
path: root/weave/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'weave/setup.py')
-rwxr-xr-xweave/setup.py45
1 files changed, 45 insertions, 0 deletions
diff --git a/weave/setup.py b/weave/setup.py
new file mode 100755
index 000000000..480c53daf
--- /dev/null
+++ b/weave/setup.py
@@ -0,0 +1,45 @@
+#!/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
+
+# Enought changes to bump the number. We need a global method for
+# versioning
+version = "0.2"
+
+def stand_alone_package(with_dependencies = 0):
+ path = get_path(__name__)
+ old_path = os.getcwd()
+ os.chdir(path)
+ try:
+ primary = ['compiler']
+ if with_dependencies:
+ dependencies= ['scipy_distutils', 'scipy_test']
+ else:
+ dependencies = []
+
+ print 'dep:', dependencies
+ config_dict = package_config(primary,dependencies)
+
+ setup (name = "compiler",
+ version = 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)
+