From 7b6d1c47cfbd209bcf89010b3ba8228a61e9a017 Mon Sep 17 00:00:00 2001 From: Rok Mandeljc Date: Sat, 29 Jul 2023 17:21:08 +0200 Subject: [PATCH] loader/bootstrap: remove support for zipped eggs Remove part of the code that extends sys.path with contents of the `os.path.join(sys._MEIPASS, 'eggs')`, as we should not be collecting eggs there anymore. --- PyInstaller/loader/pyiboot01_bootstrap.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/PyInstaller/loader/pyiboot01_bootstrap.py b/PyInstaller/loader/pyiboot01_bootstrap.py index 778e89197ff..f2daf6d8434 100644 --- a/PyInstaller/loader/pyiboot01_bootstrap.py +++ b/PyInstaller/loader/pyiboot01_bootstrap.py @@ -81,12 +81,3 @@ if sys.platform.startswith('win'): import pyimod04_pywin32 pyimod04_pywin32.install() - -# Make .eggs and zipfiles available at runtime -d = "eggs" -d = os.path.join(sys._MEIPASS, d) -# Test if the 'eggs' directory exists. This allows us to opportunistically include this script into the packaged exe, -# even if no eggs were found when packaging the program. (Which may be a use-case, see issue #653). -if os.path.isdir(d): - for fn in os.listdir(d): - sys.path.append(os.path.join(d, fn))