thammegowda / mtdata

A tool that locates, downloads, and extracts machine translation corpora
https://pypi.org/project/mtdata/
Apache License 2.0
147 stars 22 forks source link

Update cache.py #115

Closed jgwinnup closed 2 years ago

jgwinnup commented 2 years ago

Added usedforsecurity=False to md5 call since FIPS on Redhat* systems will complain and force an exit if enabled.

Some discussion here: https://github.com/python/cpython/issues/53462

thammegowda commented 2 years ago

@jgwinnup thanks for this PR. Looks like usedforsecurity=False is available in python 3.9+. Any suggestions how to make this work on python 3.7 - 3.8 ?

https://github.com/thammegowda/mtdata/pull/115/checks?check_run_id=6009686392

jgwinnup commented 2 years ago

Saw the build errors - don't have a good answer on this one - This works on a CentOS 8 - adjacent Red-hot python 3.8, but not sure if this is the case for other distros. It's a one-liner that I can keep in my fork since it's not working 100%