From e5f40776ac2b6a615a2f8cf2ae364b8516eba452 Mon Sep 17 00:00:00 2001 From: pyrco <105293448+pyrco@users.noreply.github.com> Date: Mon, 16 Sep 2024 15:17:17 +0200 Subject: [PATCH] Do not install the lz4 and lzo extras of dissect.util by default They are now provided as separate extra's. Run: pip install dissect[lz4,lzo] to install dissect with the C versions of the lz4 and lzo compression libraries. --- pyproject.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4347ba5..5c06ffa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ dependencies = [ "dissect.squashfs==1.7", "dissect.target[full]==3.19", "dissect.thumbcache==1.9", - "dissect.util[lz4,lzo]==3.18", + "dissect.util==3.18", "dissect.vmfs==3.9", "dissect.volume==3.12", "dissect.xfs==3.10", @@ -60,6 +60,16 @@ homepage = "https://dissect.tools" documentation = "https://docs.dissect.tools" repository = "https://github.com/fox-it/dissect" +[project.optional-dependencies] +lzo = [ + # 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'", +] +lz4 = [ + "lz4", +] + [tool.black] line-length = 120