Remove zlib double-dependency
Bug #566923 reported by
Martin Packman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Martin Packman |
Bug Description
Bazaar on windows currently needs two copies of zlib, one in the python dll (or as zlib.pyd for Python 2.4) and zlib1.dll separately.
This is a little silly, though there are reasonable explanations:
<https:/
<https:/
The only reason for the second copy is bzrlib._chk_map_pyx needing a crc32 function. As that's about 12 lines of C, seems overkill to ship a whole library for it.
Related branches
lp:~gz/bzr/remove_zlib_double_dependency_pyapi
- Vincent Ladeuil: Approve
- John A Meinel: Pending requested
-
Diff: 92 lines (+8/-21)2 files modifiedbzrlib/_chk_map_pyx.pyx (+7/-18)
setup.py (+1/-3)
lp:~gz/bzr/remove_zlib_double_dependency_static
- Vincent Ladeuil: Needs Information
-
Diff: 12 lines (+1/-1)1 file modifiedsetup.py (+1/-1)
To post a comment you must log in.
Couple of solutions in the branches linked, also possible if neither of those is acceptable, one of John's original solutions:
# "pulling that bit of code into this file" - crc32 is not a complicated function to include in the source.
# "remove the optimized _search_key functions" - are they still a bottleneck?