-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·74 lines (67 loc) · 2.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env python
from setuptools import setup, find_packages
import re
import subprocess
import sys
# Imports version number
VERSIONFILE = "ProDuSe/__version.py"
verstrline = open(VERSIONFILE, "rt").read()
verRegex = r"^__version__ = ['\"]([^'\"]*)['\"]"
currentVer = re.search(verRegex, verstrline, re.M)
if currentVer:
version = currentVer.group(1)
else:
version = "Unknown"
# Read in the README for the long description
with open("README.md", "r") as fh:
long_description = fh.read()
# Due to dependency shenanigans, install all dependencies through pip install of easy_install
# According to everything I have read, they should act the same, but they 100% do not
dependencyList = [
"cython",
"seaborn",
"scipy",
"fisher",
"sortedcontainers",
"configobj",
"packaging",
"pyfaidx",
"pysam!=0.15.3", # 0.15.3 does not compile
"scikit-learn==0.22.1",
"scikit-bio",
"numpy"
]
# Only run this command if we are installing ProDuSe
if sys.argv[-1] == "install":
installCom = ["pip", "install"]
installCom.extend(dependencyList)
subprocess.check_call(["pip", "install", "numpy"]) # WE ARE INSTALLING NUMPY FIRST BECAUSE ANGRY REASONS
subprocess.check_call(installCom)
setup(
name='ProDuSe',
version=version,
description='Error supression and variant calling pipeline for Illumina sequencing data',
long_description=long_description,
long_description_content_type="text/markdown",
author='Christopher Rushton',
author_email='ckrushto@sfu.ca',
include_package_data=True,
packages=["ProDuSe"],
url='/~https://github.com/morinlab/Dellingr',
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: Unix",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"License :: OSI Approved :: GNU Affero General Public License v3"
],
python_requires='>=3.5',
install_requires=dependencyList,
download_url="/~https://github.com/morinlab/ProDuSe/dist/ProDuSe-0.9.5.tar.gz",
scripts=["bin/produse"],
package_data = {"Dellingr": ["LICENSE.txt", "README.md", "etc/default_filter.pkl"]},
zip_safe = False,
project_urls={
"Source": "/~https://github.com/morinlab/ProDuSe",
"Documentation": "https://produse.readthedocs.io/en/latest/"
}
)