-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
60 lines (39 loc) · 1.33 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
import setuptools
from distutils.extension import Extension
USE_CYTHON = False
try:
from Cython.Distutils import build_ext
USE_CYTHON = True
except ImportError:
pass
ext = '.pyx' if USE_CYTHON else '.c'
extensions = [
Extension('pyBedGraph.ignore_missing_bp', ['pyBedGraph/ignore_missing_bp' + ext]),
Extension('pyBedGraph.include_missing_bp', ['pyBedGraph/include_missing_bp' + ext]),
Extension('pyBedGraph.util', ['pyBedGraph/util' + ext]),
]
if USE_CYTHON:
from Cython.Build import cythonize
extensions = cythonize(extensions, language_level=3)
NAME = 'pyBedGraph'
VERSION = '0.5.43'
setuptools.setup(
name=NAME,
version=VERSION,
author="Henry Zhang",
author_email="henrybzhang.99@gmail.com",
description="A package for fast operations on 1-dimensional genomic signal tracks",
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
url="https://github.com/TheJacksonLaboratory/pyBedGraph",
packages=setuptools.find_packages(),
install_requires=['numpy>=1.16.4'],
python_requires='>=3.6',
ext_modules=extensions,
data_files=[("", ["LICENSE"])],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)