-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
48 lines (44 loc) · 1.65 KB
/
setup.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- coding: utf-8 -*-
from codecs import open
import os
import re
from setuptools import setup, Extension
with open(os.path.join('oll', '__init__.py'), 'r', encoding='utf8') as f:
version = re.compile(
r'.*__version__ = "(.*?)"', re.S).match(f.read()).group(1)
oll_module = Extension(
'_oll',
sources=['lib/oll.cpp', 'oll_swig_wrap.cxx'],
include_dirs=['lib'],
depends=['lib/oll.hpp'],
language='c++'
)
setup(
name='oll',
version=version,
author="Yukino Ikegami",
author_email='[email protected]',
url='https://github.com/ikegami-yukino/oll-python',
description="Online binary classification algorithms library (wrapper for OLL C++ library)",
long_description='%s\n\n%s' % (open('README.rst', encoding='utf8').read(),
open('CHANGES.rst', encoding='utf8').read()),
ext_modules=[oll_module],
py_modules=["oll"],
headers=['lib/oll.hpp'],
packages=['oll'],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Text Processing :: Linguistic'
],
keywords=['machine learning', 'online learning', 'perceptron',
'Passive Agressive', 'PA', 'ALMA',
'Confidence Weighted Linear-Classification'],
)