forked from omerwe/LEAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (45 loc) · 1.32 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
48
49
50
51
52
53
54
55
"""
file to set up python package, see http://docs.python.org/2/distutils/setupscript.html for details.
"""
import platform
import os
import sys
import shutil
import setuptools
from distutils.core import setup
from distutils.extension import Extension
from distutils.command.clean import clean as Clean
try: import numpy
except Exception:
print("numpy needed for installation, please install numpy first")
sys.exit()
try: import scipy
except Exception:
print("scipy needed for installation, please install numpy first")
sys.exit()
def readme():
with open('leap/README.md') as f:
return f.read()
# set up macro
if "win" in platform.system().lower():
macros = [("_WIN32", "1")]
else:
macros = [("_UNIX", "1")]
#python setup.py sdist bdist_wininst upload
setup(
name='leap_gwas',
version='0.1.7.2',
description='Liability Estimation in Case Control Studies',
long_description=readme(),
keywords='gwas bioinformatics LMMs MLMs',
url="https://github.com/omerwe/LEAP",
author='Omer Weissbrod',
author_email='omerw@cs.technion.ac.il',
license='Apache 2.0',
packages=["leap"],
include_package_data=True,
install_requires = ['numpy', 'scipy', 'fastlmm', 'scikit-learn', 'pandas'],
#zip_safe=False,
# extensions
include_dirs = [numpy.get_include()]
)