Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: pure python #274

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
python-version: ["3.7", "3.8", "3.9"]
os: [ubuntu-18.04, ubuntu-20.04]

steps:
Expand All @@ -25,6 +25,7 @@ jobs:
- name: Install numcodecs
run: |
python -m pip install -U pip -r requirements_test.txt -r requirements.txt
python -m pip install -U --only-binary blosc blosc
python -m pip install -v -e .

- name: List installed packages
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-osx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
python-version: ["3.7", "3.8", "3.9"]

steps:
- name: Checkout source
Expand All @@ -31,6 +31,7 @@ jobs:
conda activate env
which pip
pip install -r requirements_test.txt -r requirements.txt
pip install -U --only-binary blosc blosc
conda env export

- name: Install numcodecs
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
python-version: ["3.7", "3.8", "3.9"]

steps:
- name: Checkout source
Expand All @@ -31,6 +31,7 @@ jobs:
conda activate env
which pip
pip install -r requirements_test.txt -r requirements.txt
pip install -U --only-binary blosc blosc
conda env export

- name: Install numcodecs
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "c-blosc"]
path = c-blosc
url = https://github.com/Blosc/c-blosc.git
1 change: 0 additions & 1 deletion c-blosc
Submodule c-blosc deleted from 9fae1c
11 changes: 3 additions & 8 deletions numcodecs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,12 @@
pass

try:
import blosc as _blosc
from numcodecs import blosc
from numcodecs.blosc import Blosc
register_codec(Blosc)
# initialize blosc
try:
ncores = multiprocessing.cpu_count()
except OSError: # pragma: no cover
ncores = 1
blosc.init()
blosc.set_nthreads(min(8, ncores))
atexit.register(blosc.destroy)
except ImportError: # pragma: no cover
raise
pass

try:
Expand All @@ -66,6 +60,7 @@
from numcodecs.lz4 import LZ4
register_codec(LZ4)
except ImportError: # pragma: no cover
raise
pass

from numcodecs.astype import AsType
Expand Down
Loading