-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
41 lines (37 loc) · 1.17 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
from __future__ import print_function
from setuptools import setup
from setuptools.command.install import install
import sys
import subprocess
class InstallClass(install):
def run(self):
install.run(self)
subprocess.call(['pip', 'install', 'tensorflow', 'virtualenv', 'protobuf', 'asciitree', 'mock'])
sys.path.reverse()
import syntaxnet_wrapper
syntaxnet_wrapper_dir = syntaxnet_wrapper.__path__[0]
subprocess.call(['make'], cwd=syntaxnet_wrapper_dir)
setup(name='syntaxnet_wrapper',
version='0.4.1',
description='A Python Wrapper for Google SyntaxNet',
url='https://github.com/livingbio/syntaxnet_wrapper',
author='Ping Chu Hung',
author_email='banyhong@gliacloud.com',
license='MIT',
packages=['syntaxnet_wrapper'],
zip_safe=False,
install_requires=[
'tensorflow',
'virtualenv',
'protobuf',
'asciitree',
'mock',
],
cmdclass={
'install': InstallClass,
},
test_suite='nose.collector',
tests_require=['nose'],
include_package_data=True,
package_data={'syntaxnet_wrapper': ['makefile']}
)