-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (26 loc) · 1016 Bytes
/
setup.py
File metadata and controls
31 lines (26 loc) · 1016 Bytes
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
import os
from setuptools import setup, find_packages
path_to_weights = os.path.join('rrnlp', 'models', 'weights')
path_to_minimap = os.path.join('rrnlp', 'models', 'util', 'minimap')
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
return paths
extra_files = ["../requirements.txt",
os.path.join("../", path_to_weights, "weights_manifest.json")]
extra_files.extend(package_files(path_to_minimap))
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(name='rrnlp',
version='1.0.3',
description='NLP for EBM',
url='https://github.com/bwallace/RRnlp',
author='Byron Wallace, Iain Marshall',
author_email='b.wallace@northeastern.edu',
license='MIT',
packages=find_packages(),
package_data={'': extra_files},
install_requires=required,
zip_safe=False)