-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (45 loc) · 1.62 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
from setuptools import setup
from setuptools.command.install import install
class PostInstallCommand(install):
def run(self):
import subprocess
command_add = "python -m spacy download en_core_web_sm"
p = subprocess.Popen(command_add, stdout=subprocess.PIPE, shell=True, stderr=subprocess.STDOUT)
while p.poll() == None:
out = p.stdout.readline().strip()
if out:
print (bytes.decode(out))
install.run(self)
with open('requirements.txt', 'r') as f:
install_requires = list()
dependency_links = list()
for line in f:
re = line.strip()
if re:
install_requires.append(re)
print(dependency_links)
setup(name='Datamart-upload',
version='2.0dev',
description='Data Augmentation',
author='ISI',
url='https://github.com/usc-isi-i2/datamart-upload',
packages=['datamart_isi.upload',
'datamart_isi.scripts',
# 'datamart.joiners',
# 'datamart.joiners.join_feature',
# 'datamart.materializers',
# 'datamart.materializers.parsers',
# 'datamart.metadata',
# 'datamart.profilers',
# 'datamart.profilers.helpers',
# 'datamart.utilities',
# 'datamart.resources',
],
# package_dir={'datamart': 'datamart'},
# package_data={'datamart': ['resources/*.json','resources/*.csv']},
install_requires=install_requires,
dependency_links=dependency_links,
cmdclass={
'install': PostInstallCommand
}
)