~ubuntu-branches/ubuntu/saucy/python-scipy/saucy

« back to all changes in this revision

Viewing changes to Lib/sandbox/svm/setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Ondrej Certik
  • Date: 2008-06-16 22:58:01 UTC
  • mfrom: (2.1.24 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080616225801-irdhrpcwiocfbcmt
Tags: 0.6.0-12
* The description updated to match the current SciPy (Closes: #489149).
* Standards-Version bumped to 3.8.0 (no action needed)
* Build-Depends: netcdf-dev changed to libnetcdf-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from os.path import join
2
 
 
3
 
def configuration(parent_package='', top_path=None, package_name='svm'):
4
 
    from numpy.distutils.misc_util import Configuration
5
 
    config = Configuration(package_name,parent_package,top_path)
6
 
    config.add_subpackage('*')
7
 
    config.add_extension('libsvm_',
8
 
                         define_macros=[('LIBSVM_EXPORTS', None),
9
 
                                        ('LIBSVM_DLL', None)],
10
 
                         sources=[join('libsvm-2.82', 'svm.cpp')],
11
 
                         depends=[join('libsvm-2.82', 'svm.h')])
12
 
    config.add_data_dir('tests')
13
 
    return config
14
 
 
15
 
if __name__ == '__main__':
16
 
    from numpy.distutils.core import setup
17
 
    setup(**configuration(top_path='',
18
 
                          package_name='scipy.sandbox.svm').todict())