File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 25
25
import tempfile
26
26
from pathlib import Path
27
27
28
- from Cython .Build import cythonize
29
-
30
28
from setuptools import Extension , find_packages , setup
31
29
from setuptools .command .build_ext import build_ext
32
30
@@ -65,6 +63,9 @@ def build_extension(self, ext):
65
63
os .path .join (isa_l_prefix_dir , "lib" , "libisal.a" )]
66
64
67
65
if os .getenv ("CYTHON_COVERAGE" ) is not None :
66
+ # Import cython here so python setup.py can be used without
67
+ # installing cython.
68
+ from Cython .Build import cythonize
68
69
# Add cython directives and macros for coverage support.
69
70
cythonized_exts = cythonize (ext , compiler_directives = dict (
70
71
linetrace = True
Original file line number Diff line number Diff line change 3
3
# python3 interpreter of the user.
4
4
envlist =py3
5
5
[testenv]
6
+ deps =pytest
7
+ passenv =
8
+ PYTHON_ISAL_LINK_DYNAMIC
9
+ commands =
10
+ # Create HTML coverage report for humans and xml coverage report for external services.
11
+ pytest -v tests
12
+
13
+ [testenv:coverage]
6
14
deps =coverage[toml]
7
15
cython
8
16
pytest
You can’t perform that action at this time.
0 commit comments