##// END OF EJS Templates
zstd: hack include order to ensure that our zstd.h is found...
zstd: hack include order to ensure that our zstd.h is found If the regular Python CFLAGS include directories that already have the zstd headers available, a different and possible incompatible version can be picked up otherwise. Sadly, it seems like Python has no easy way to prefix flags before the rest.

File last commit:

r49730:6000f5b2 default
r51424:9d1c56a7 default
Show More
hashutil.py
8 lines | 175 B | text/x-python | PythonLexer
import hashlib
try:
from ..thirdparty import sha1dc # pytype: disable=import-error
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
sha1 = hashlib.sha1