godotengine / godotengine/godot-docs
Updating the "Compiling for Windows" doc with more info on edge cases with python and scons
- Dominant language
- reStructuredText
- Stars
- 5.7k
- Forks
- 3.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 25
Description
**Your Godot version:**
4.4
**Issue description:**
I ran into several issues trying to get scons to build the project. _As a disclaimer I rarely ever use python! In fact I try to actively avoid it if I can so maybe my installation was in an especially weird state. But scons uses python._
Python on windows installs to `%localuser%\AppData\Local\Programs\python` . Older versions of python or perhaps the microsoft app store version installed into `ProgramFiles`. Removing those old versions deletes the .exe, but does not delete that `ProgramFiles\Python\` folder.
**Scons will default to looking for a python .exe in that folder.**
Which means I had to delete that folder manually, so scons would default to the actual python installation path that has the .exe.
Next problem and something that I am honestly still baffled by. I could not get python to even run from the command line without first going to `Manage app execution aliases` and turning off everything with python in the name there. Setting paths, removing all python version except latest, none of it made any difference for me until I turned those off.
Maybe these are "rare" problems. I have no idea, but it was **incredibly** painful. So maybe some mention of these edge cases could be nice in the docs page somewhere?
**URL to the documentation page (if already existing):**
https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_windows.html
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.