This repository was archived by the owner on Feb 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ Installation
2121
2222Python 3.3+ is required.
2323
24+ Install dependencies
25+ ^^^^^^^^^^^^^^^^^^^^
26+
27+ clcache uses https://pypi.python.org/pypi/xxhash[xxhash] for file hashing.
28+ Install it via:
29+
30+ pip install xxhash
31+
2432Installation via exe
2533^^^^^^^^^^^^^^^^^^^^
2634
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ install:
4242 - pip install codecov
4343 - coverage --version
4444
45+ # Install xxhash python bindings
46+ - pip install xxhash
47+
4548build_script :
4649 - python clcache.py --help
4750 - python clcache.py -s
Original file line number Diff line number Diff line change 1313import codecs
1414import contextlib
1515import errno
16- import hashlib
1716import json
1817import multiprocessing
1918import os
2019import re
2120import signal
2221import subprocess
2322import sys
23+ import xxhash
2424from tempfile import TemporaryFile
2525
2626VERSION = "3.3.1-dev"
2727
28- HashAlgorithm = hashlib . md5
28+ HashAlgorithm = xxhash . xxh64
2929
3030# try to use os.scandir or scandir.scandir
3131# fall back to os.listdir if not found
@@ -192,7 +192,7 @@ class ManifestRepository(object):
192192 # invalidation, such that a manifest that was stored using the old format is not
193193 # interpreted using the new format. Instead the old file will not be touched
194194 # again due to a new manifest hash and is cleaned away after some time.
195- MANIFEST_FILE_FORMAT_VERSION = 6
195+ MANIFEST_FILE_FORMAT_VERSION = 7
196196
197197 def __init__ (self , manifestsRootDir ):
198198 self ._manifestsRootDir = manifestsRootDir
You can’t perform that action at this time.
0 commit comments