Commit 24f9f8c
committed
Fix PyInstaller cache hash mismatch by excluding build/dist directories
The compute_source_hash() function was including files from the build/
directory (generated by PyInstaller during the same run), causing the hash
computed at check time (before build/) to differ from the hash at save time
(after build/ exists). This made the cache always miss.
Fix: exclude build/, dist/, and __pycache__/ from the hash computation.
These are all build artifacts that don't affect the PyInstaller input.1 parent 65f98a7 commit 24f9f8c
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
| 333 | + | |
332 | 334 | | |
333 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
334 | 340 | | |
335 | 341 | | |
336 | 342 | | |
| |||
0 commit comments