-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (50 loc) · 1.51 KB
/
setup.py
File metadata and controls
56 lines (50 loc) · 1.51 KB
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
51
52
53
54
55
56
from setuptools import setup, find_packages
import os
# Taken from setup.py in seaborn.
# temporarily redirect config directory to prevent matplotlib importing
# testing that for writeable directory which results in sandbox error in
# certain easy_install versions
os.environ["MPLCONFIGDIR"]="."
# Modified from from setup.py in seaborn.
try:
from setuptools import setup
_has_setuptools=True
except ImportError:
from distutils.core import setup
def check_dependencies():
to_install=[]
try:
import numpy
except ImportError:
to_install.append('numpy>=1.13.1')
try:
import scipy
except ImportError:
to_install.append('scipy>=0.19.1')
try:
import matplotlib
except ImportError:
to_install.append('matplotlib>=2.0.2')
try:
import pandas
if int(pandas.__version__.split('.')[1])<20:
to_install.append('pandas>=0.20.1')
except ImportError:
to_install.append('pandas>=0.20.1')
try:
import seaborn
except ImportError:
to_install.append('seaborn>0.8')
return to_install
if __name__=="__main__":
installs=check_dependencies()
setup(name='bootstrap_contrast',
author='Joses Ho',
author_email='joseshowh@gmail.com',
version=1.0,
description='Calculation and Visualization of Confidence Intervals and Effect Sizes for Python.',
packages=find_packages(),
install_requires=installs,
url='http://github.com/josesho/bootstrap_contrast',
license='MIT'
)