-
Notifications
You must be signed in to change notification settings - Fork 204
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (26 loc) · 839 Bytes
/
setup.py
File metadata and controls
29 lines (26 loc) · 839 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
import os
from setuptools import setup, find_packages
import torch
print("torch.__version__ = ", torch.__version__)
TORCH_MAJOR = int(torch.__version__.split('.')[0])
TORCH_MINOR = int(torch.__version__.split('.')[1])
if TORCH_MAJOR == 0 and TORCH_MINOR < 4:
raise RuntimeError("Sentiment Discovery requires Pytorch 0.4 or newer.\n" +
"The latest stable release can be obtained from https://pytorch.org/")
print("Building module.")
setup(
name='sentiment_discovery', version='0.4',
# ext_modules=[cuda_ext,],
description='PyTorch Extensions written by NVIDIA',
packages=find_packages(where='.'),
install_requires=[
"numpy",
"pandas",
"scikit-learn",
"matplotlib",
"unidecode",
"seaborn",
"sentencepiece",
"emoji"
]
)