From: Jameel Al-Aziz <247849+jalaziz@users.noreply.github.com> Date: Wed, 1 Sep 2021 22:05:11 +0000 (-0700) Subject: Add hidden import to PyInstaller build (GH-2466) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/72de89f54e744a8b3bbc9d3ea71f78a67d8ba82e?hp=72de89f54e744a8b3bbc9d3ea71f78a67d8ba82e Add hidden import to PyInstaller build (GH-2466) Add new platformdirs dependencies as hidden imports when creating PyInstaller-based binaries. platformdirs imports the module for each platform dynamically, which PyInstaller is unable to correctly detect for packing. By adding the modules as hidden imports, we are telling PyInstaller to include the modules in the packaged binary. This issue seems to have been introduce when switching to platformdirs in #2375. fixes #2464 Commit history before merge: * Add hidden import to PyInstaller build Add new platformdirs dependency as a hidden import when creating PyInstaller based binaries. * Only include the platformdirs for the relevant os ---