File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 4040 pass
4141
4242try :
43+ import blosc as _blosc
4344 from numcodecs import blosc
4445 from numcodecs .blosc import Blosc
4546 register_codec (Blosc )
4849 ncores = multiprocessing .cpu_count ()
4950 except OSError : # pragma: no cover
5051 ncores = 1
51- blosc .init ()
52- blosc .set_nthreads (min (8 , ncores ))
53- atexit .register (blosc .destroy )
52+ # blosc.init()
53+ _blosc .set_nthreads (min (8 , ncores ))
54+ atexit .register (_blosc .destroy )
5455except ImportError : # pragma: no cover
5556 pass
5657
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ setenv =
1414 py36,py37,py38,py39: PY_MAJOR_VERSION = py3
1515commands =
1616 pip install --only-binary blosc blosc
17- python setup.py build_ext --inplace
18- py36,py37,py38: pytest -v --cov =numcodecs numcodecs
17+ py36,py37,py38: pytest {posargs:-v} --cov =numcodecs numcodecs
1918 py39: pytest -v --cov =numcodecs --doctest-modules --doctest-glob =*.pyx numcodecs
2019 coverage report -m
2120 py39: flake8 numcodecs
You can’t perform that action at this time.
0 commit comments