-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
60 lines (55 loc) · 1.79 KB
/
setup.py
File metadata and controls
60 lines (55 loc) · 1.79 KB
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
import logging
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext as _build_ext
# https://stackoverflow.com/a/21621689/
class build_ext(_build_ext):
def finalize_options(self):
_build_ext.finalize_options(self)
# Prevent numpy from thinking it is still in its setup process:
__builtins__.__NUMPY_SETUP__ = False
import numpy
self.include_dirs.append(numpy.get_include())
mapping_module = Extension(
'mapanalyzerext', sources=['MapAnalyzer/cext/src/ma_ext.c'], extra_compile_args=["-DNDEBUG", "-O2"]
)
logger = logging.getLogger(__name__)
requirements = [ # pragma: no cover
"wheel",
"numpy~=1.19.2",
"Cython",
"burnysc2",
"matplotlib",
"scipy",
"loguru",
"tqdm",
"scikit-image",
]
setup( # pragma: no cover
name="sc2mapanalyzer",
# version=f"{__version__}",
version="0.0.87",
install_requires=requirements,
setup_requires=["wheel", "numpy~=1.19.2"],
cmdclass={"build_ext": build_ext},
ext_modules=[mapping_module],
packages=["MapAnalyzer", "MapAnalyzer.cext"],
extras_require={
"dev": [
"pytest",
"pytest-html",
"monkeytype",
"mypy",
"mpyq",
"pytest-asyncio",
"hypothesis",
"pytest-benchmark",
"sphinx",
"sphinx-autodoc-typehints",
"pytest-cov",
"coverage",
"codecov",
"mutmut",
"radon",
]
},
)