-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
84 lines (68 loc) · 1.97 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# -*- coding: utf-8 -*-
""" Setup LocusMasterTE-ngs package
"""
from __future__ import print_function
from os import path, environ
from distutils.core import setup
from setuptools import Extension
from setuptools import find_packages
from LocusMasterTE._version import VERSION
__author__ = 'Sojung LEE'
__copyright__ = "Copyright (C) 2023 Sojung LEE"
USE_CYTHON = True
CONDA_PREFIX = environ.get("CONDA_PREFIX", '.')
HTSLIB_INCLUDE_DIR = environ.get("HTSLIB_INCLUDE_DIR", None)
htslib_include_dirs = [
HTSLIB_INCLUDE_DIR,
path.join(CONDA_PREFIX, 'include'),
path.join(CONDA_PREFIX, 'include', 'htslib'),
]
htslib_include_dirs = [d for d in htslib_include_dirs if path.exists(str(d)) ]
ext = '.pyx' if USE_CYTHON else '.c'
extensions = [
Extension("telescope_scripts.utils.calignment",
["telescope_scripts/utils/calignment"+ext],
include_dirs=htslib_include_dirs,
),
]
if USE_CYTHON:
from Cython.Build import cythonize
extensions = cythonize(extensions)
setup(
name='LocusMasterTE-ngs',
version=VERSION.split('+')[0],
packages=find_packages(),
install_requires=[
'future',
'pyyaml',
'cython',
'numpy>=1.16.3',
'scipy>=1.2.1',
'pysam>=0.15.2',
'intervaltree>=3.0.2',
],
# Runnable scripts
entry_points={
'console_scripts': [
'LocusMasterTE=LocusMasterTE.__main__:main',
],
},
# cython
ext_modules=extensions,
# data
package_data = {
'LocusMasterTE': [
'data/alignment.bam',
'data/annotation.gtf',
'data/LocusMasterTE_report.tsv'
],
},
# metadata for upload to PyPI
author='Sojung LEE',
author_email='[email protected]',
description='long-read assisted short-read Transposable Elements quantification(LocusMasterTE)',
license='MIT',
keywords='',
url='https://github.com/jasonwong-lab/LocusMasterTE',
zip_safe=False
)