forked from mikolmogorov/Flye
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
42 lines (35 loc) · 1.3 KB
/
setup.py
File metadata and controls
42 lines (35 loc) · 1.3 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
#(c) 2016 by Authors
#This file is a part of ABruijn program.
#Released under the BSD license (see LICENSE file)
from __future__ import print_function
import sys
#Check Python version
if sys.version_info[:2] != (2, 7):
print("Error: Flye requires Python version 2.7 ({0}.{1} detected)."
.format(sys.version_info[0], sys.version_info[1]))
sys.exit(-1)
from distutils.core import setup
from distutils.command.build import build as DistutilsBuild
import subprocess
from flye.__version__ import __version__
class MakeBuild(DistutilsBuild):
def run(self):
try:
subprocess.check_call(['make'])
except subprocess.CalledProcessError as e:
print ("Compilation error: ", e)
return
DistutilsBuild.run(self)
setup(name='flye',
version=__version__,
description='Fast and accurate de novo assembler for single molecule sequencing reads',
url='https://github.com/fenderglass/ABruijn',
author='Mikhail Kolmogorov',
author_email = 'fenderglass@gmail.com',
license='BSD-3-Clause',
packages=['flye'],
package_data={'flye': ['resource/*']},
scripts = ['bin/flye-assemble', 'bin/flye-polish',
'bin/flye-repeat', 'bin/flye', 'bin/flye-minimap2'],
cmdclass={'build': MakeBuild}
)