docs: install python3-venv before the Linux quick start #690

Merged
romn4rch merged 1 commit from upstream-pr/696 into main 2026-11-22 21:13:49 +00:00
romn4rch commented 2026-11-22 20:46:47 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-22T20:46:47Z.


Change

Adds the python3-venv prerequisite to the Linux quick start, before out/pe-env is created. It uses the same apt-get form as the LLVM 15 step below it. Without the package, the first quick-start command fails in a fresh Ubuntu 24.04 container, as found while verifying #652. Nothing else changes.

Refs #652.

sudo apt-get update -q
sudo apt-get install -y python3-venv

Verification

Fresh ubuntu:24.04 container (Ubuntu 24.04.5 LTS, x86_64), Ubuntu's Python 3.12.3, fresh clone at 3b9bb1aaf412aa3e6de4626aa309c7f289ac9daf. The image ships without python3 and git, so apt-get update -q && apt-get install -y -q --no-install-recommends ca-certificates git python3 ran first. Commands ran as root, so without sudo:

$ python3 -m venv out/pe-env
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.12-venv
[exit 1]
$ apt-get install -y -q python3-venv
The following NEW packages will be installed:
  python3-pip-whl python3-setuptools-whl python3-venv python3.12-venv
[exit 0]
$ rm -rf out/pe-env
$ python3 -m venv out/pe-env
[exit 0]
$ ./out/pe-env/bin/python -m pip install -r requirements-dev.txt
Successfully installed iced-x86-1.21.0 pefile-2024.8.26
[exit 0]

The 21 scripts in the documented loop then all exited 0. Per-check results are in the #652 report.

  • The failing python3 -m venv run without the package is the negative control.
  • On the edited file, check_links() from tests/docs_links_check.py finds 5 relative links, 0 broken. findings() from tests/bidi_controls_check.py returns [], and git diff --check reports nothing.
  • This branch starts from an older main. Since then, main has changed this file only in the check lists. git merge-file with the main version at 3b9bb1a merges without conflicts, and the result is that version plus these 7 lines.
  • This is a docs-only change. I did not run the Windows C++, HLSL, WARP or hardware checks.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture. (N/A: no fixture; the failing run above is the failure case)
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6547576732 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/696). Originally posted by [romn4rch](https://github.com/romn4rch) on 2026-11-22T20:46:47Z. --- ## Change Adds the `python3-venv` prerequisite to the [Linux quick start](https://github.com/R0Y00/Xbox2Windows/blob/main/docs/non-windows-hosts.md#quick-start-on-linux), before `out/pe-env` is created. It uses the same `apt-get` form as the LLVM 15 step below it. Without the package, the first quick-start command fails in a fresh Ubuntu 24.04 container, as found while verifying #652. Nothing else changes. Refs #652. ```bash sudo apt-get update -q sudo apt-get install -y python3-venv ``` ## Verification Fresh `ubuntu:24.04` container (Ubuntu 24.04.5 LTS, x86_64), Ubuntu's Python 3.12.3, fresh clone at `3b9bb1aaf412aa3e6de4626aa309c7f289ac9daf`. The image ships without `python3` and `git`, so `apt-get update -q && apt-get install -y -q --no-install-recommends ca-certificates git python3` ran first. Commands ran as root, so without `sudo`: ``` $ python3 -m venv out/pe-env The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. apt install python3.12-venv [exit 1] $ apt-get install -y -q python3-venv The following NEW packages will be installed: python3-pip-whl python3-setuptools-whl python3-venv python3.12-venv [exit 0] $ rm -rf out/pe-env $ python3 -m venv out/pe-env [exit 0] $ ./out/pe-env/bin/python -m pip install -r requirements-dev.txt Successfully installed iced-x86-1.21.0 pefile-2024.8.26 [exit 0] ``` The 21 scripts in the documented loop then all exited 0. Per-check results are in the #652 report. - The failing `python3 -m venv` run without the package is the negative control. - On the edited file, `check_links()` from `tests/docs_links_check.py` finds 5 relative links, 0 broken. `findings()` from `tests/bidi_controls_check.py` returns `[]`, and `git diff --check` reports nothing. - This branch starts from an older `main`. Since then, `main` has changed this file only in the check lists. `git merge-file` with the `main` version at `3b9bb1a` merges without conflicts, and the result is that version plus these 7 lines. - This is a docs-only change. I did not run the Windows C++, HLSL, WARP or hardware checks. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. (N/A: no fixture; the failing run above is the failure case) - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. _AI-assisted._
upstream-sync closed this pull request 2026-11-24 06:44:23 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!690
No description provided.