forked from mit-nlp/MITIE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (30 loc) · 989 Bytes
/
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
import os.path
from distutils.core import setup
from distutils.command.build import build
import subprocess
class BuildMITIE(build):
def run(self):
subprocess.check_call(['make', 'mitielib'])
build.run(self)
self.copy_file(
'mitielib/libmitie.so',
os.path.join(self.build_lib, 'mitie/libmitie.so'))
setup(
version='0.2.0',
name='mitie',
packages=['mitie'],
package_dir={'mitie': 'mitielib'},
cmdclass={'build': BuildMITIE},
classifiers=[
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'License :: Boost License',
]
)