forked from mpkocher/pbcoretools
/
setup.py
executable file
·56 lines (45 loc) · 1.87 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, Extension, find_packages
import os.path
import sys
REQUIREMENTS_TXT = "requirements.txt"
if ("install" in sys.argv) and sys.version_info < (2, 7, 0):
print "pbcoretools requires Python 2.7"
sys.exit(-1)
globals = {}
execfile("pbcoretools/__init__.py", globals)
__VERSION__ = globals["__VERSION__"]
def _get_local_file(file_name):
return os.path.join(os.path.dirname(__file__), file_name)
def _get_requirements(file_name):
with open(file_name, 'r') as f:
reqs = [line for line in f if not line.startswith("#")]
return reqs
def _get_local_requirements(file_name):
return _get_requirements(_get_local_file(file_name))
setup(
name = 'pbcoretools',
version=__VERSION__,
author='Pacific Biosciences',
author_email='devnet@pacificbiosciences.com',
description="Python CLI tools and add-ons for reading and writing PacBio® data files",
license=open('LICENSES.txt').read(),
packages = find_packages('.'),
package_dir = {'':'.'},
package_data = {'pbcoretools': ['data/*.h5', 'data/*.gff', 'data/*.fasta',
'data/*.fasta.fai', 'data/*.fofn', 'data/*.m4',
'data/*.fa', 'data/*.fa.fai',
'data/*.m5', 'data/*.bam', 'data/*.bam.bai', "data/*.bam.pbi",
'chemistry/resources/*.xml',
'data/datasets/*.*',
'data/datasets/yieldtest/*.*']
},
zip_safe = False,
entry_points = {"console_scripts": [
"dataset = pbcoretools.dataset:main",
'pbvalidate = pbcoretools.pbvalidate.main:main',
'bamSieve = pbcoretools.bamSieve:main',
]},
install_requires=_get_local_requirements(REQUIREMENTS_TXT),
test_requires=("pbtestdata",))