Skip to content

build: remove the PyInstaller splash screen workaround (#7) - #29

Merged
paulmueller merged 3 commits into
DC-analysis:mainfrom
paulmueller-agent:remove-splash-workaround
Nov 27, 2026
Merged

paulmueller merged 3 commits into
DC-analysis:mainfrom
paulmueller-agent:remove-splash-workaround

Conversation

@paulmueller-agent

Copy link
Copy Markdown

Closes #7.

Background

chipstream/gui/splash.py set the environment variable _PYIBoot_SPLASH after closing the splash screen. The child processes that dcnum starts with multiprocessing are started from the same frozen executable and inherit this variable, so they did not show the splash screen again (pyinstaller/pyinstaller#7121). PyInstaller fixed the original problem in pyinstaller/pyinstaller#8634 ("Rework detection of inherited PyInstaller environment", merged 2024-07-06), which is part of PyInstaller 6.10.0 and later.

Test

I built ChipStream (current main, Windows, torch 2.14.1+cu130) twice on the Windows lab PC with PyInstaller 6.22.3, using build-recipes/win_ChipStream.spec:

  • build A: with the workaround
  • build B: without it (the line removed in this PR)

With build B, the splash screen showed at startup and closed when the main window opened. When I ran an analysis, which starts the dcnum worker processes, the splash screen did not appear again.

Changes

  • splash.py: remove the _PYIBoot_SPLASH workaround (and the os import).
  • build-recipes/win_build_requirements.txt: pyinstaller>=6.10 (was >=4.7), so that a Windows build cannot use a PyInstaller version without the fix.
  • test_gui_splash_close_no_workaround: splash_close() does not set _PYIBoot_SPLASH anymore. It fails on main and passes with the change.

The deploy workflow (PYINSTALLER_COMPILE_BOOTLOADER: 1, PyInstaller from win_build_requirements.txt) is not changed otherwise.

Lint

lint-compare against main: ruff 0 → 0, pyright 1.1.408 0 → 0, flake8 clean.

🤖 Generated with Claude Code

`splash_close` set the environment variable `_PYIBoot_SPLASH` so that
child processes (multiprocessing) of the frozen application did not
show the splash screen again (pyinstaller/pyinstaller#7121). PyInstaller
6.10 fixed this (pyinstaller/pyinstaller#8634). A Windows build with
PyInstaller 6.22.3 without the workaround did not show the splash
screen during an analysis on the lab PC. The Windows build now requires
PyInstaller>=6.10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.05%. Comparing base (4d6672b) to head (c8a5493).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #29      +/-   ##
==========================================
- Coverage   81.07%   81.05%   -0.03%     
==========================================
  Files          23       23              
  Lines        1723     1721       -2     
==========================================
- Hits         1397     1395       -2     
  Misses        326      326              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@paulmueller paulmueller left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the splash test. It really does nothing.

@paulmueller
paulmueller merged commit 0300531 into DC-analysis:main Nov 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: migrate to latest version of PyInstaller if splash screen does not pop up during analysis

2 participants