-
Notifications
You must be signed in to change notification settings - Fork 251
/
Copy pathsetup.py
54 lines (52 loc) · 1.75 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
49
50
51
52
53
54
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import unittest
# Define the C++ extension
extensions = [
Extension('*',
sources=[
'fasttext/fasttext.pyx',
'fasttext/interface.cc',
'fasttext/cpp/src/args.cc',
'fasttext/cpp/src/dictionary.cc',
'fasttext/cpp/src/matrix.cc',
'fasttext/cpp/src/model.cc',
'fasttext/cpp/src/utils.cc',
'fasttext/cpp/src/vector.cc'
],
language='c++',
extra_compile_args=['-pthread', '-funroll-loops', '-std=c++0x'])
]
# Package details
setup(
name='fasttext',
version='0.5.17',
author='Bayu Aldi Yansyah',
author_email='[email protected]',
url='https://github.com/pyk/fastText.py',
description='A Python interface for Facebook fastText library',
license='BSD 3-Clause License',
packages=['fasttext'],
ext_modules = cythonize(extensions),
install_requires=[
'numpy>=1',
'future'
],
classifiers= [
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: C++',
'Programming Language :: Cython',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering :: Artificial Intelligence'
]
)