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
|
from setuptools import Extension
from distutils.core import setup
import sys
def get_extensions():
if "clean" in sys.argv:
return []
from Cython.Build import cythonize
extensions = [
Extension(
"sorted_nearest.src.sorted_nearest",
["sorted_nearest/src/sorted_nearest.pyx"],
),
Extension(
"sorted_nearest.src.max_disjoint_intervals",
["sorted_nearest/src/max_disjoint_intervals.pyx"],
),
Extension(
"sorted_nearest.src.k_nearest",
["sorted_nearest/src/k_nearest.pyx"],
),
Extension(
"sorted_nearest.src.k_nearest_ties",
["sorted_nearest/src/k_nearest_ties.pyx"],
),
Extension(
"sorted_nearest.src.clusters",
["sorted_nearest/src/clusters.pyx"],
),
Extension(
"sorted_nearest.src.annotate_clusters",
["sorted_nearest/src/annotate_clusters.pyx"],
),
Extension(
"sorted_nearest.src.cluster_by",
["sorted_nearest/src/cluster_by.pyx"],
),
Extension(
"sorted_nearest.src.merge_by",
["sorted_nearest/src/merge_by.pyx"],
),
Extension(
"sorted_nearest.src.introns",
["sorted_nearest/src/introns.pyx"],
),
Extension(
"sorted_nearest.src.windows",
["sorted_nearest/src/windows.pyx"],
),
Extension(
"sorted_nearest.src.tiles",
["sorted_nearest/src/tiles.pyx"],
),
]
return cythonize(extensions, language_level=3)
setup(ext_modules=get_extensions())
|