Skip to content

Commit

Permalink
Explicitly exclude setuptools/pkg_resources from build (saving 1.2MB)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Feb 3, 2025
1 parent 4e08ef5 commit 1197bb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ $arguments = @(
'--additional-hooks-dir=Pyinstaller/hooks',
'--icon=res/icon.ico',
'--splash=res/splash.png',
'--exclude=pkg_resources',
'--exclude=setuptools',
# The install script should ensure that these are not installed
# But we'll still include unused dependencies that would be picked up by PyInstaller
# if requirements.txt was used directly to help ensure consistency when building locally.
Expand Down

0 comments on commit 1197bb8

Please sign in to comment.