-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
82 lines (80 loc) · 2.64 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
from setuptools import setup, Extension
from Cython.Build import cythonize
import numpy
extensions = [
Extension(
"hapla.reader_cy",
["hapla/reader_cy.pyx"],
extra_compile_args=['-fopenmp', '-O3', '-ffast-math', '-march=native', '-fno-wrapv'],
extra_link_args=['-fopenmp', '-lm'],
include_dirs=[numpy.get_include()],
define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')]
),
Extension(
"hapla.cluster_cy",
["hapla/cluster_cy.pyx"],
extra_compile_args=['-fopenmp', '-O3', '-ffast-math', '-march=native', '-fno-wrapv'],
extra_link_args=['-fopenmp', '-lm'],
include_dirs=[numpy.get_include()],
define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')]
),
Extension(
"hapla.shared_cy",
["hapla/shared_cy.pyx"],
extra_compile_args=['-fopenmp', '-O3', '-ffast-math', '-march=native', '-fno-wrapv'],
extra_link_args=['-fopenmp', '-lm'],
include_dirs=[numpy.get_include()],
define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')]
),
Extension(
"hapla.memory_cy",
["hapla/memory_cy.pyx"],
extra_compile_args=['-fopenmp', '-O3', '-ffast-math', '-march=native', '-fno-wrapv'],
extra_link_args=['-fopenmp', '-lm'],
include_dirs=[numpy.get_include()],
define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')]
),
Extension(
"hapla.admix_cy",
["hapla/admix_cy.pyx"],
extra_compile_args=['-fopenmp', '-O3', '-ffast-math', '-march=native', '-fno-wrapv'],
extra_link_args=['-fopenmp', '-lm'],
include_dirs=[numpy.get_include()],
define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')]
),
Extension(
"hapla.fatash_cy",
["hapla/fatash_cy.pyx"],
extra_compile_args=['-fopenmp', '-O3', '-ffast-math', '-march=native', '-fno-wrapv'],
extra_link_args=['-fopenmp', '-lm'],
include_dirs=[numpy.get_include()],
define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')]
)
]
setup(
name="hapla",
version="0.21.1",
author="Jonas Meisner",
author_email="meisnerucph@gmail.com",
description="Framework for haplotype clustering in phased genotype data",
long_description_content_type="text/markdown",
long_description=open("README.md").read(),
url="https://github.com/Rosemeis/hapla",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
],
ext_modules=cythonize(extensions, compiler_directives={'language_level':'3'}),
python_requires=">=3.10",
install_requires=[
"cython>3.0.0",
"cyvcf2>=0.31.0",
"numpy>2.0.0"
],
packages=["hapla"],
entry_points={
"console_scripts": ["hapla=hapla.main:main"]
},
)