Skip to content

Commit

Permalink
Merge pull request borgbackup#8502 from ThomasWaldmann/borghash
Browse files Browse the repository at this point in the history
replace old hashindex code by borghash + small wrapper
  • Loading branch information
ThomasWaldmann authored Oct 31, 2024
2 parents 1fa2b9a + c37c78f commit 1f00d29
Show file tree
Hide file tree
Showing 15 changed files with 181 additions and 2,049 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ classifiers = [
]
license = {text="BSD"}
dependencies = [
"borghash ~= 0.0.1",
"borgstore ~= 0.1.0",
"msgpack >=1.0.3, <=1.1.0",
"packaging",
Expand Down
106 changes: 0 additions & 106 deletions scripts/hash_sizes.py

This file was deleted.

6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ def lib_ext_kwargs(pc, prefix_env_var, lib_name, lib_pkg_name, pc_version, lib_s
dict(sources=[platform_linux_source], libraries=["acl"], extra_compile_args=cflags)
)

# note: _chunker.c and _hashindex.c are relatively complex/large pieces of handwritten C code,
# thus we undef NDEBUG for them, so the compiled code will contain and execute assert().
# note: _chunker.c is a relatively complex/large piece of handwritten C code,
# thus we undef NDEBUG for it, so the compiled code will contain and execute assert().
ext_modules += [
Extension("borg.crypto.low_level", **crypto_ext_kwargs),
Extension("borg.compress", **compress_ext_kwargs),
Extension("borg.hashindex", [hashindex_source], extra_compile_args=cflags, undef_macros=["NDEBUG"]),
Extension("borg.hashindex", [hashindex_source], extra_compile_args=cflags),
Extension("borg.item", [item_source], extra_compile_args=cflags),
Extension("borg.chunker", [chunker_source], extra_compile_args=cflags, undef_macros=["NDEBUG"]),
Extension("borg.checksums", **checksums_ext_kwargs),
Expand Down
30 changes: 0 additions & 30 deletions src/borg/_endian.h

This file was deleted.

Loading

0 comments on commit 1f00d29

Please sign in to comment.