Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (20 sloc) 1020 Bytes
#!/usr/bin/python
from distutils.core import setup, Extension
from glob import glob
lib_sources = glob('lib/*.c')
lib_sources.remove('lib/svm_loqo.c') # this is an alternate backend for SVM-Light; only
# one of {svm_loqo.c,svm_hideo.c} may be compiled
# with this extension.
lib_sources.remove('lib/svm_classify.c') # this file implements the "classify" binary;
# don't include it, since it defines main()
# again!
setup(name = 'svmlight',
description = 'Interface to Thorsten Joachims\' SVM-Light',
author = "William Cauchois",
author_email = "wcauchois@gmail.com",
url = "http://bitbucket.org/wcauchois/pysvmlight",
long_description = open('README.md').read(),
ext_modules = [
Extension('svmlight', include_dirs = ['lib/'],
sources = ['svmlight.c'] + lib_sources)
])