Skip to content

Commit

Permalink
[Issue #332] Delete certifi runtime hook
Browse files Browse the repository at this point in the history
This hook is being deleted because it is not required for certifi to function and it introduces inconsistent behavior between frozen/unfrozen code.
  • Loading branch information
LincolnPuzey authored and bwoodsend committed Oct 25, 2021
1 parent 55e3c85 commit abf3dca
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
1 change: 1 addition & 0 deletions news/335.update.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed the ``certifi`` run-time hook because it was not required for ``certifi`` to function in a frozen application. It was sometimes setting the ``SSL_CERT_FILE`` environment variable which causes applications to behave differently when frozen. In particular the ``SSLContext.set_default_verify_paths()`` method loads the certificates from ``certifi`` when the ``SSL_CERT_FILE`` environment variable is set.
1 change: 0 additions & 1 deletion src/_pyinstaller_hooks_contrib/hooks/rthooks.dat
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
'certifi': ['pyi_rth_certifi.py'],
'enchant': ['pyi_rth_enchant.py'],
'osgeo': ['pyi_rth_osgeo.py'],
'traitlets': ['pyi_rth_traitlets.py'],
Expand Down
18 changes: 0 additions & 18 deletions src/_pyinstaller_hooks_contrib/hooks/rthooks/pyi_rth_certifi.py

This file was deleted.

0 comments on commit abf3dca

Please sign in to comment.