File: setup.py

package info (click to toggle)
pbh5tools 0.8.0%2Bgit20170929.58d54ff%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,132 kB
  • sloc: python: 1,973; makefile: 186; ansic: 86; sh: 1
file content (37 lines) | stat: -rwxr-xr-x 1,046 bytes parent folder | download | duplicates (3)
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
from setuptools import setup, Extension, find_packages

import os
import sys

vFile = 'pbh5tools/_version.py'

if os.path.exists(vFile):
    lines = open(vFile, 'r').read().splitlines()
    for line in lines:
        elts = line.split('=')
        elts = [e.strip() for e in elts]
        if len(elts) == 2 and elts[0] == '__version__':
            _ReadVersion = elts[1].replace('\'', '').replace('\"', '')
            break
else:
    _ReadVersion = '0.0.0'

setup(
    name = 'pbh5tools',
    version=_ReadVersion,
    author='Pacific Biosciences',
    author_email='devnet@pacificbiosciences.com',
    license=open('LICENSES.txt').read(),
    scripts = ['bin/bash5tools.py',
               'bin/cmph5tools.py'],
    packages = find_packages("."),
    package_dir = {'':'.'},
    ext_modules=[Extension('pbh5tools/ci', ['pbh5tools/ci.c'],
                           extra_compile_args=["-O3","-shared"])],
    zip_safe = False,
    install_requires=[
        'pbcore >= 0.8.0',
        'numpy >= 1.6.0',
        'h5py >= 1.3.0'
        ]
    )