-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
44 lines (42 loc) · 1.12 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
from setuptools import setup, Extension
from Cython.Build import cythonize
import numpy
extensions = [
Extension(
"haplonet.shared_cy",
["haplonet/shared_cy.pyx"],
extra_compile_args=['-fopenmp', '-O3', '-g0', '-Wno-unreachable-code'],
extra_link_args=['-fopenmp'],
include_dirs=[numpy.get_include()],
language="c++",
define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')]
),
Extension(
"haplonet.lahmm_cy",
["haplonet/lahmm_cy.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="HaploNet",
version="0.5",
description="Gaussian Mixture Variational Autoencoder for Genetic Data",
author="Jonas Meisner",
packages=["haplonet"],
entry_points={
"console_scripts": ["haplonet=haplonet.haploNet:main"]
},
python_requires=">=3.6",
install_requires=[
"cython",
"cyvcf2",
"numpy",
"scipy",
"torch"
],
ext_modules=cythonize(extensions, compiler_directives={'language_level':'3'}),
include_dirs=[numpy.get_include()]
)