-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (48 loc) · 1.57 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
55
56
57
58
print("""
=====================================
Important! lxml installation depends on libraries installed on your system.
If you get an error relating to lxml compilation, try installing its
dependencies first:
sudo apt-get install libxml2-dev libxslt-dev
=====================================
""")
from setuptools import setup, find_packages
from os import walk
from os.path import join
import sys
def all_files(*paths):
files = []
for path in paths:
files += [(w[0], [join(w[0],f) for f in w[2]]) for w in walk(path)]
return files
setup(
name = "rdfconverters",
version = "0.1",
packages = find_packages(),
data_files = all_files('rdfconverters/resources'),
install_requires = [
'distribute',
'requests',
'rdflib >= 3.2.3',
'beautifulsoup4',
'lxml',
'nltk '
],
dependency_links = [
'http://github.com/nltk/nltk/tarball/2and3#egg=nltk'
],
entry_points = {
'console_scripts': [
'ie2rdf = rdfconverters.ie2rdf.ie2rdf:main',
'merge_graphs = rdfconverters.merge_graphs:main',
'daxquintuples2rdf = rdfconverters.daxquintuples2rdf.daxquintuples2rdf:main',
'xbrl2rdf = rdfconverters.xbrl2rdf.xbrl2rdf:main',
'en2rdf = rdfconverters.en2rdf.en2rdf:main',
'gatexmlgenerator = rdfconverters.ie2rdf.gatexmlgenerator.gatexmlgenerator:main',
'dax2rdf = rdfconverters.dax2rdf.dax2rdf:main',
]
}
)
if 'install' in sys.argv or 'develop' in sys.argv:
import nltk;
nltk.download('stopwords')