Skip to content

Commit

Permalink
Move the selection between the native and Python implementations of l…
Browse files Browse the repository at this point in the history
…zo and lz4 to dissect.util
  • Loading branch information
Jan Willem Brandenburg committed Jul 19, 2024
1 parent 781b8e1 commit c6596f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 1 addition & 5 deletions dissect/btrfs/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
from typing import TYPE_CHECKING, BinaryIO, NamedTuple
from uuid import UUID

from dissect.util import lzo
from dissect.util.stream import AlignedStream

try:
import lzo
except ImportError:
from dissect.util.compression import lzo

try:
import zstandard

Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ repository = "https://github.com/fox-it/dissect.btrfs"

[project.optional-dependencies]
full = [
# There are no Windows PyPy wheels available for python-lzo
# So we use a pure python fallback for it.
"python-lzo; platform_system != 'Windows' or platform_python_implementation != 'PyPy'",
"zstandard",
]
gcrc32 = [
Expand Down

0 comments on commit c6596f9

Please sign in to comment.