-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
54 lines (50 loc) · 2.08 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
#!/usr/bin/env python
# Written by Soo Lee and Carl Vitzthum
# This code is based on the following open-source projects:
# pytabix (https://github.com/slowkow/pytabix)
# pysam (https://github.com/pysam-developers)
# The Github repo for this project is:
# https://github.com/4dn-dcic/pairix
# IMPORTANT: use Python 2.7 or above for this package
from setuptools import setup, find_packages, Extension
EXT_MODULES = [
Extension("pypairix",
sources=[
"src/bgzf.c", "src/bgzip.c", "src/index.c",
"src/knetfile.c", "src/kstring.c",
"src/pairixmodule.c"
],
include_dirs=["src"],
libraries=["z"],
define_macros=[("_FILE_OFFSET_BITS", 64), ("_USE_KNETFILE", 1)]
)
]
with open("VERSION.txt") as version_file:
this_version = version_file.readlines()[-1].split()[-1].strip("\"'")
setup(
name = "pypairix",
version = this_version,
description = "Pypairix is a Python module for fast querying on a pairix-indexed bgzipped text file that contains a pair of genomic coordinates per line. For more information, see: https://github.com/4dn-dcic/pairix/blob/master/README.md.",
url = "https://github.com/4dn-dcic/pairix",
download_url = "https://github.com/4dn-dcic/pairix/tarball/" + this_version,
author = "Soo Lee, Carl Vitzthum",
author_email = "[email protected]",
license = "MIT",
keywords = ["pairix","tabix", "bgzip", "bioinformatics", "genomics","hi-c"],
packages = find_packages(),
package_data = { "": ["*.gz", "*.gz.px2"] },
ext_modules = EXT_MODULES,
test_suite = "test",
classifiers = [
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: C",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Bio-Informatics"
]
)