~ubuntu-branches/ubuntu/karmic/python-scipy/karmic

« back to all changes in this revision

Viewing changes to Lib/cluster/setup_cluster.py

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T. Chen (new)
  • Date: 2005-03-16 02:15:29 UTC
  • Revision ID: james.westby@ubuntu.com-20050316021529-xrjlowsejs0cijig
Tags: upstream-0.3.2
ImportĀ upstreamĀ versionĀ 0.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
import os
 
4
from scipy_distutils.core import Extension
 
5
from scipy_distutils.misc_util import get_path,default_config_dict,dot_join
 
6
 
 
7
def configuration(parent_package='',parent_path=None):
 
8
    package = 'cluster'
 
9
    local_path = get_path(__name__,parent_path)
 
10
    config = default_config_dict(package,parent_package)
 
11
    
 
12
    # This should really be fixed to use inline...
 
13
    sources = ['src/vq_wrap.cpp']
 
14
    sources = [os.path.join(local_path,x) for x in sources]
 
15
 
 
16
    ext = Extension(dot_join(parent_package,'cluster._vq'),sources)
 
17
    config['ext_modules'].append(ext)
 
18
 
 
19
    return config
 
20
 
 
21
if __name__ == '__main__':
 
22
    from scipy_distutils.core import setup
 
23
    setup(maintainer = "SciPy Developers",
 
24
          author = "eric jones",
 
25
          maintainer_email = "scipy-dev@scipy.org",
 
26
          description = "Clustering Algorithms (Information Theory)",
 
27
          url = "http://www.scipy.org",
 
28
          license = "SciPy License (BSD Style)",
 
29
          **configuration()
 
30
          )