diff --git a/freeze.py b/freeze.py index b326f06715..e4ac69f31c 100644 --- a/freeze.py +++ b/freeze.py @@ -284,6 +284,7 @@ def find_files(directory, patterns): libpath = libdetailsparts[0].strip() libpath_file = os.path.basename(libpath) if (libpath + and os.path.exists(libpath) and not libpath.startswith("/lib") and "libnvidia-glcore.so" not in libpath and libpath_file not in [ @@ -306,13 +307,21 @@ def find_files(directory, patterns): "libpangocairo-1.0.so.0", "libpangoft2-1.0.so.0", "libharfbuzz.so.0", - "libthai.so.0" ] - ) or libpath_file in ["libgcrypt.so.11", "libQt5DBus.so.5", "libpng12.so.0", - "libbz2.so.1.0", "libqxcb.so", "libxcb-xinerama.so.0", "libpcre.so.3"]: - # Ignore missing files - if os.path.exists(libpath): - filepath, filename = os.path.split(libpath) - external_so_files.append((libpath, filename)) + "libthai.so.0", + ] + ) or libpath_file in [ + "libgcrypt.so.11", + "libQt5DBus.so.5", + "libpng12.so.0", + "libbz2.so.1.0", + "libqxcb.so", + "libxcb-xinerama.so.0", + "libpcre.so.3", + "libselinux.so.1", + ]: + external_so_files.append((libpath, libpath_file)) + # Any other lib deps that fail to meet the inclusion + # criteria above will be silently skipped over elif sys.platform == "darwin": # Copy Mac specific files that cx_Freeze misses