forked from commonsense/conceptnet5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (40 loc) · 1.25 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
#!/usr/bin/env python
from setuptools import setup, find_packages, Command
from setuptools.command.install import install
from setuptools.command.develop import develop
import sys
packages = find_packages()
version_str = '5.3.0'
class NLTKDownloadCommand(Command):
"""
Get the boilerplate out of the way for commands that take no options.
"""
description = "Download necessary data to use with NLTK"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from conceptnet5.language import nltk_download
nltk_download()
setup(
name = 'ConceptNet',
version = version_str,
description = 'A semantic network of general knowledge',
author = "Rob Speer",
packages=packages,
include_package_data=True,
install_requires=[
'nltk >= 3.0b1', 'xmltodict', 'pyyaml', 'requests',
'flask', 'flask-cors', 'flask-limiter', 'grako > 3', 'ftfy',
'msgpack-python'
],
# assoc-space >= 1.0b1 is required for using assoc-space features, but it's
# not required for all of ConceptNet
license = 'GPLv3',
cmdclass = {
'nltk_download': NLTKDownloadCommand,
}
)