-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
44 lines (38 loc) · 1.35 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
#!/usr/bin/env python
from setuptools import Extension, setup
from setup_helper import SetupHelper
name = "tredparse"
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Topic :: Scientific/Engineering :: Bio-Informatics',
]
with open('requirements.txt') as f:
required = f.read().splitlines()
# Use the helper
h = SetupHelper(initfile="tredparse/__init__.py", readmefile="README.md")
h.check_version(name, majorv=2, minorv=7)
libssw_ext = {"sources": ["src/ssw.c"], "include_dirs": ["src"]}
setup(
name=name,
version=h.version,
author=h.author,
author_email=h.email,
license=h.license,
long_description=h.long_description,
packages=[name, "ssw"],
package_dir={'ssw': 'src', 'tredparse': 'tredparse'},
include_package_data=True,
package_data={name: ["data/*.*"]},
ext_modules=[Extension("libssw", **libssw_ext)],
py_modules=["ssw.__init__", "ssw.ssw_wrap"],
scripts=["tred.py", "tredreport.py", "tredplot.py"],
classifiers=classifiers,
zip_safe=False,
url='https://github.com/tanghaibao/tredparse',
description='Short Tandem Repeat (STR) genotyper',
install_requires=required + ['pysam']
)