Skip to content

Running python3 on Windows#466

Draft
CvvT wants to merge 2 commits intomainfrom
weiteng/python_on_windows
Draft

Running python3 on Windows#466
CvvT wants to merge 2 commits intomainfrom
weiteng/python_on_windows

Conversation

@CvvT
Copy link
Contributor

@CvvT CvvT commented Nov 4, 2025

This PR adds a dummy implementation for rt_sigaction so that we could run python3 on Windows.

  1. Run the test test_runner_with_python on Linux to create the rootfs tar file and rewritten binary of python3.
  2. Copy the files (rootfs_python3_rewriter.tar and python3.hooked) to Windows
  3. cargo run -p litebox_runner_linux_on_windows_userland --release -- --unstable --env LD_LIBRARY_PATH=/lib64:/lib32:/lib --env HOME=/ --initial-files rootfs_python3_rewriter.tar --env PYTHONHOME=/usr --env PYTHONPATH=:/usr/lib/python310.zip:/usr/lib/python3.10:/usr/lib/python3.10/lib-dynload:/usr/local/lib/python3.10/dist-packages:/usr/lib/python3/dist-packages --env PYTHONDONTWRITEBYTECODE=1 --env LD_AUDIT=/lib/litebox_rtld_audit.so .\python3.hooked

Base automatically changed from weiteng/fix_windows_platform to main November 4, 2025 03:28
@jstarks
Copy link
Member

jstarks commented Nov 26, 2025

This works without additional changes with #524 .

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.

2 participants