-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (55 loc) · 1.69 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
from setuptools import setup, Extension
from Cython.Build import cythonize
import numpy
extensions = [
Extension(
name="fastmixture.em",
sources=["fastmixture/em.pyx"],
extra_compile_args=['-fopenmp', '-O3', '-g0', '-Wno-unreachable-code'],
extra_link_args=['-fopenmp'],
include_dirs=[numpy.get_include()],
define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')]
),
Extension(
name="fastmixture.svd",
sources=["fastmixture/svd.pyx"],
extra_compile_args=['-fopenmp', '-O3', '-g0', '-Wno-unreachable-code'],
extra_link_args=['-fopenmp'],
include_dirs=[numpy.get_include()],
define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')]
),
Extension(
name="fastmixture.shared",
sources=["fastmixture/shared.pyx"],
extra_compile_args=['-fopenmp', '-O3', '-g0', '-Wno-unreachable-code'],
extra_link_args=['-fopenmp'],
include_dirs=[numpy.get_include()],
define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')]
)
]
setup(
name="fastmixture",
version="0.93.4",
author="Jonas Meisner",
author_email="[email protected]",
description="Fast Ancestry Estimation",
long_description_content_type="text/markdown",
long_description=open("README.md").read(),
url="https://github.com/Rosemeis/fastmixture",
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),
python_requires=">=3.10",
install_requires=[
"cython>3.0.0",
"numpy>2.0.0"
],
packages=["fastmixture"],
entry_points={
"console_scripts": ["fastmixture=fastmixture.main:main"]
},
)