blob: fcd88d65adee26a997ea3c371b685239ab7332d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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)
|