-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·71 lines (66 loc) · 2.09 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
#!/usr/bin/env python3
import setuptools
import subprocess
from distutils.command.build import build
from setuptools.command.install import install as SetuptoolsInstall
import sys
import platform
with open("README.md", "r") as fh:
long_description = fh.read()
class SHBuild(build):
def run(self):
try:
if "Linux" in platform.platform():
subprocess.check_call(["sh", "build.sh"])
elif 'Darwin' in platform.platform():
subprocess.check_call(["sh", "build.sh", "macos"])
else:
# TODO what issues might raise in windows?
# Will wait until somebody face one!
subprocess.check_call(["sh", "build.sh"])
except subprocess.CalledProcessError as e:
sys.exit("Compilation error: ", e)
packages = setuptools.find_packages()
package_data = {
"mbcclr_utils": [
"mbcclr_utils/*",
"mbcclr_utils/bin/*",
]
}
data_files = [(".", ["LICENSE", "README.md"])]
setuptools.setup(
name="MetaBCC-LR",
version="2.0",
zip_safe=True,
author="Anuradha Wickramarachchi",
author_email="[email protected]",
description="MetaBCC-LR: Metagenomics Binning by Coverage and Composition for Long Reads",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/anuradhawick/MetaBCC-LR",
packages=packages,
package_data=package_data,
data_files=data_files,
include_package_data=True,
scripts=['mbcclr'],
classifiers=[
'Development Status :: 5 - Production/Stable',
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
'Natural Language :: English',
'Topic :: Scientific/Engineering :: Bio-Informatics',
"Operating System :: OS Independent",
],
install_requires=[
"biopython",
"tqdm",
"kneed",
"h5py",
"tabulate",
"seaborn",
"umap-learn",
"song-vis",
"setuptools"],
python_requires='>=3.6',
cmdclass={ 'build': SHBuild }
)