Skip to content

Commit 10b6f76

Browse files
committed
Remove old interpreter versions before uploading artifact.
1 parent 15cae7e commit 10b6f76

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757
- name: Run Build
5858
shell: cmd
5959
run: build.bat
60+
- name: Cleanup rebuild interpreters
61+
run: Get-ChildItem -Path $(Get-Location) -File -Include *.old_interp -Recurse | Remove-Item -Force -Verbose
6062
- uses: actions/upload-artifact@v4
6163
with:
6264
name: Nuitka-Python311_windows_x64

Lib/rebuildpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def run_rebuild():
477477
if os.path.splitdrive(temp_path)[0] == os.path.splitdrive(sys.executable)[0]:
478478
shutil.move(sys.executable, temp_path)
479479
else:
480-
shutil.move(sys.executable, sys.executable + uuid.uuid4().hex + ".old")
480+
shutil.move(sys.executable, sys.executable + uuid.uuid4().hex + ".old_interp")
481481
ctypes.windll.kernel32.MoveFileExW(temp_path, None, MOVEFILE_DELAY_UNTIL_REBOOT)
482482

483483
shutil.move(os.path.join(build_dir, "python.exe"), interpreter_path)

0 commit comments

Comments
 (0)