-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
47 lines (41 loc) · 1.29 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
from setuptools import find_packages, setup, Extension
def check_package(package = 'rpy2'):
import importlib
try:
importlib.import_module(package)
except ImportError as e:
raise ImportError("Requires {package} to "
"be installed before running setup.py (pip install {package})"\
.format(package = package))
finally:
pass
_ = [check_package(p) for p in ['rpy2','numpy','pandas']]
#try:
# import rpy2
#except ImportError:
# raise ImportError("Requires rpy2 to "
# "be installed before running setup.py (pip install cython)")
#try:
# import numpy as np
#except ImportError:
# raise ImportError("Requires numpy to "
# "be installed before running setup.py (pip install numpy)")
#try:
# import pandas
#except ImportError:
# raise ImportError("Requires pandas to "
# "be installed before running setup.py (pip install pandas)")
setup(
name = 'diffexp',
version = '0.1',
description = 'Tools for porting differential expression DESeq to python',
url = '',
author = 'Douglas C. Wu',
author_email = '[email protected]',
license = 'MIT',
packages = find_packages(),
zip_safe = False,
install_requires=[
'pandas',
'rpy2']
)