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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
#!/usr/bin/env python
import os
from glob import glob
from scipy_distutils.misc_util import get_path, default_config_dict, 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 = default_config_dict('weave',parent_package)
config['packages'].append(dot_join(parent_package,'weave.tests'))
test_path = os.path.join(local_path,'tests')
config['package_dir']['weave.tests'] = test_path
scxx_files = glob(os.path.join(local_path,'scxx','*.*'))
install_path = os.path.join(parent_path,'weave','scxx')
config['data_files'].extend( [(install_path,scxx_files)])
blitz_files = glob(os.path.join(local_path,'blitz-20001213','blitz','*.*'))
install_path = os.path.join(parent_path,'weave','blitz-20001213',
'blitz')
config['data_files'].extend( [(install_path,blitz_files)])
array_files = glob(os.path.join(local_path,'blitz-20001213','blitz',
'array','*.*'))
install_path = os.path.join(parent_path,'weave','blitz-20001213',
'blitz','array')
config['data_files'].extend( [(install_path,array_files)])
meta_files = glob(os.path.join(local_path,'blitz-20001213','blitz',
'meta','*.*'))
install_path = os.path.join(parent_path,'weave','blitz-20001213',
'blitz','meta')
config['data_files'].extend( [(install_path,meta_files)])
swig_files = glob(os.path.join(local_path,'swig','*.c'))
install_path = os.path.join(parent_path,'weave','swig')
config['data_files'].extend( [(install_path,swig_files)])
doc_files = glob(os.path.join(local_path,'doc','*.html'))
install_path = os.path.join(parent_path,'weave','doc')
config['data_files'].extend( [(install_path,doc_files)])
example_files = glob(os.path.join(local_path,'examples','*.py'))
install_path = os.path.join(parent_path,'weave','examples')
config['data_files'].extend( [(install_path,example_files)])
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=''))
|