/
setup_cluster.py
executable file
·32 lines (26 loc) · 1.06 KB
/
setup_cluster.py
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
#!/usr/bin/env python
import os
from scipy.distutils.core import Extension
from scipy.distutils.misc_util import get_path,default_config_dict,dot_join
def configuration(parent_package='',parent_path=None):
from scipy.distutils.system_info import get_info
package = 'cluster'
local_path = get_path(__name__,parent_path)
config = default_config_dict(package,parent_package)
# This should really be fixed to use inline...
sources = ['src/vq_wrap.cpp']
sources = [os.path.join(local_path,x) for x in sources]
ext = Extension(dot_join(parent_package,'cluster._vq'),
sources)
config['ext_modules'].append(ext)
return config
if __name__ == '__main__':
from scipy.distutils.core import setup
setup(maintainer = "SciPy Developers",
author = "eric jones",
maintainer_email = "scipy-dev@scipy.org",
description = "Clustering Algorithms (Information Theory)",
url = "http://www.scipy.org",
license = "SciPy License (BSD Style)",
**configuration()
)