-
Notifications
You must be signed in to change notification settings - Fork 40
/
setup.py
40 lines (36 loc) · 1.37 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
from setuptools import setup, find_packages
import sys
import os
# from subprocess import check_output
if sys.version_info.major != 3:
raise RuntimeError("DeepTCR requires Python 3")
dir = os.path.dirname(os.path.abspath(__file__))
req_file = os.path.join(dir,'requirements.txt')
with open(req_file) as f:
required = f.read().splitlines()
# try:
# num_gpus = len(check_output(['nvidia-smi', '--query-gpu=gpu_name',
# '--format=csv']).decode().strip().split('\n'))
# tf = 'tensorflow-gpu' if num_gpus > 1 else 'tensorflow'
# except:
# tf = 'tensorflow'
#
# if tf == 'tensorflow':
# sel = [x for x in required if x.startswith('tensorflow-gpu')]
# required.remove(sel[0])
# required.append(''.join(sel[0].split('-gpu')))
setup(
name="DeepTCR",
description="Deep Learning Methods for Parsing T-Cell Receptor Sequencing (TCRSeq) Data",
version="2.1.27",
author="John-William Sidhom",
author_email="jsidhom1@jhmi.edu",
packages=find_packages(),
install_requires = required,
url="https://github.com/sidhomj/DeepTCR",
license="LICENSE",
long_description=open(os.path.join(dir,"README.md")).read(),
long_description_content_type='text/markdown',
package_data={'DeepTCR':[os.path.join('phenograph','louvain','*'),
os.path.join('functions','Supertype_Data_Dict.csv')]}
)