/dev-python/pycryptodome/files/pycryptodome-3.10.1-parallel-make.patch

https://github.com/Whissi/gentoo-overlay · Patch · 22 lines · 22 code · 0 blank · 0 comment · 0 complexity · c3339f51768b6388ce39fc9d79853943 MD5 · raw file

  1. diff -dupr a/setup.py b/setup.py
  2. --- a/setup.py 2021-02-09 13:46:16.138626317 +0100
  3. +++ b/setup.py 2021-02-09 13:46:51.116065599 +0100
  4. @@ -360,7 +360,7 @@ ext_modules = [
  5. Extension("Crypto.Cipher._raw_eksblowfish",
  6. include_dirs=['src/'],
  7. define_macros=[('EKS',None),],
  8. - sources=["src/blowfish.c"],
  9. + sources=["src/blowfish_eks.c"],
  10. py_limited_api=True),
  11. Extension("Crypto.Cipher._raw_cast",
  12. include_dirs=['src/'],
  13. @@ -442,7 +442,8 @@ ext_modules = [
  14. # Math
  15. Extension("Crypto.Math._modexp",
  16. include_dirs=['src/'],
  17. - sources=['src/modexp.c', 'src/siphash.c', 'src/modexp_utils.c', 'src/mont.c'],
  18. + sources=['src/modexp.c', 'src/siphash.c', 'src/modexp_utils.c',
  19. + 'src/mont_math.c'],
  20. py_limited_api=True,
  21. ),
  22. ]