-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
74 lines (65 loc) · 2.16 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
74
import sys
# limit python version to 3.10 or later
if sys.version_info < (3, 10):
print("PepDream requires Python 3.10 or later, please upgrade your Python version")
exit(1)
# Check if Cython is available or if it needs to be installed
try:
from Cython.Build import cythonize
except ImportError:
print("Cython needed for installation, please install it manually")
exit(1)
# Check if setuptools is available or if it needs to be installed
try:
from setuptools import setup, find_packages
except ImportError:
print("setuptools needed for installation, please install it manually")
exit(1)
DISTNAME = "PepDream"
VERSION = "0.1.0"
DESCRIPTION = "PepDream: automatic feature extraction for peptide identification from tandem mass spectra"
AUTHOR = "Yikang Yue, University of Science and Technology of China (USTC)"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/npz7yyk/PepDream"
LICENSE = "MIT"
CLASSIFIERS = ["Natural Language :: English",
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python :: 3 :: Only"]
def main():
setup(
name=DISTNAME,
version=VERSION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
license=LICENSE,
packages=find_packages(include=["pepdream"]),
url=URL,
platforms=["any"],
install_requires=[
"h5py",
"tqdm",
"numpy",
"scikit-learn",
"torch",
"Cython"
],
classifiers=CLASSIFIERS,
ext_modules=cythonize(
"pepdream/qvalue_acc.pyx",
build_dir="build"
),
entry_points={
"console_scripts": [
"pepdream = pepdream.main:main"
]
}
)
if __name__ == "__main__":
main()