1
from os.path import join
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),
10
sources=[join('libsvm-2.82', 'svm.cpp')],
11
depends=[join('libsvm-2.82', 'svm.h')])
12
config.add_data_dir('tests')
15
if __name__ == '__main__':
16
from numpy.distutils.core import setup
17
setup(**configuration(top_path='',
18
package_name='scipy.sandbox.svm').todict())