forked from PacificBiosciences/pbcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·56 lines (44 loc) · 1.84 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 sys
import os
if ("install" in sys.argv) and sys.version_info < (2, 7, 0):
print "pbcore requires Python 2.7"
sys.exit(-1)
globals = {}
execfile("pbcore/__init__.py", globals)
__VERSION__ = globals["__VERSION__"]
_REQUIREMENTS_FILE = 'requirements.txt'
_REQUIREMENTS_TEST_FILE = "requirements-dev.txt"
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 = 'pbcore',
version=__VERSION__,
author='Pacific Biosciences',
author_email='devnet@pacificbiosciences.com',
description="A Python library for reading and writing PacBio® data files",
license=open('LICENSES.txt').read(),
packages = find_packages('.'),
package_dir = {'':'.'},
package_data = {'pbcore': ['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" : [ ".open = pbcore.io.opener:entryPoint" ] },
scripts=['bin/dataset.py'],
install_requires=_get_local_requirements(_REQUIREMENTS_FILE),
tests_require=_get_local_requirements(_REQUIREMENTS_TEST_FILE)
)