Replies: 3 comments 6 replies
-
I've moved this to a discussion. If you've read the docs, SCons thus far hasn't required any other packages besides what's in the python distribution to run. Feel free to develop this in the scons-contrib repo if you'd like to see if you can get this working with SCons. |
Beta Was this translation helpful? Give feedback.
-
This might start with providing boilerplate code which users can integrate into their E.g. this should work (but doesn't):
https://scons.org/doc/latest/HTML/scons-api/SCons.Util#SCons.Util.hashes.set_hash_format |
Beta Was this translation helpful? Give feedback.
-
That story was kind of weird - we got some complaints that if you ran SCons in a FIPS-compliant environment (essentially, RHEL in a US-Govt setting), it failed because md5 was disabled in Python by policy. SCons doesn't use the hash for any cryptographic purpose, only for hashing. After adding other hash options than md5, a contributor figured out that Python as of 3.9 had added the option to declare that, with the new |
Beta Was this translation helpful? Give feedback.
-
Currently, SCons only supports hash algorithms which are provided by the
hashlib
, but those are rather slow (in the ballpark of 1-2 GB/s).There are much faster alternatives available, e.g.
xxHash
which runs at the speed of RAM (an order of magnitude faster than MD5, up to ~30 times, according toxxHash
developers).xxHash
is readily available as a C and Python3 library via Debian repositories, so e.g. Ubuntu/Debian users can install it with ease. The hash is not cryptographic, but it's acceptable according to the comments I found in SCons code.Beta Was this translation helpful? Give feedback.
All reactions