Commit 9fa6319
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 9fa6319
1 file changed
Lines changed: 7 additions & 1 deletion
| 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