forked from BenjaminPeter/admixfrog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (27 loc) · 1.07 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
from setuptools import setup#, find_namespace_packages
from distutils.extension import Extension
USE_CYTHON = False
ext = '.pyx' if USE_CYTHON else '.c'
extensions = [Extension("admixfrog.distributions", ["admixfrog/distributions"+ext]),
Extension("admixfrog.read_emissions", ["admixfrog/read_emissions"+ext])]
if USE_CYTHON:
from Cython.Build import cythonize
extensions = cythonize(extensions)
setup(
setup_requires =["pbr>=1.9", 'setuptools>=17.1',
'pytest-runner'
],
tests_require = ['pytest',
'pytest-console-scripts',
'pytest-cov'],
ext_modules = extensions,
pbr=True)
else:
setup(
setup_requires=["pbr>=1.9", 'setuptools>=17.1', 'pytest-runner'],
python_requires=">=3.6",
tests_require = ['pytest',
'pytest-console-scripts',
'pytest-cov'],
ext_modules = extensions,#cythonize(["admixfrog/*.pyx"], annotate=True),
pbr=True)