zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
U
U±d    ã
@s¼dZddlZddlZddlmZddlmZgZddddd    d
gZzbeD]XZ    ej
  ee    ƒ¡Z eD]>Z e ej
 e d e ¡¡ZeD]Ze ee     d ej¡f¡q~q^qFWnek
r¶YnXdS) av
Hook for PyCryptodome library: https://pypi.python.org/pypi/pycryptodome
 
PyCryptodome is an almost drop-in replacement for the now unmaintained
PyCrypto library. The two are mutually exclusive as they live under
the same package ("Crypto").
 
PyCryptodome distributes dynamic libraries and builds them as if they were
Python C extensions (even though they are not extensions - as they can't be
imported by Python). It might sound a bit weird, but this decision is rooted
in PyPy and its partial and slow support for C extensions. However, this also
invalidates several of the existing methods used by PyInstaller to decide the
right files to pull in.
 
Even though this hook is meant to help with PyCryptodome only, it will be
triggered also when PyCrypto is installed, so it must be tested with both.
 
Tested with PyCryptodome 3.5.1, PyCrypto 2.6.1, Python 2.7 & 3.6, Fedora & Windows
éN)ÚEXTENSION_SUFFIXES)Úget_module_file_attributez Crypto.Mathz Crypto.Cipherz Crypto.Utilz Crypto.HashzCrypto.ProtocolzCrypto.PublicKeyz_*%sÚ.)Ú__doc__ÚosÚglobZPyInstaller.compatrZPyInstaller.utils.hooksrZbinariesZbinary_module_namesÚ module_nameÚpathÚdirnameZm_dirÚextÚjoinZ
module_binÚfÚappendÚreplaceÚsepÚ ImportError©rrúld:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\_pyinstaller_hooks_contrib/hooks/stdhooks/hook-Crypto.pyÚ<module> s*  ú    "