How to compile the Python interpreter from scratch on Microsoft Windows
Вставка
- Опубліковано 29 вер 2024
- Microsoft Windows users tend to use Python as a pre-built binary they download and install from Python.org. It's also possible to compile the Python runtime yourself, and in some cases it's the only way to make use of certain compile-time options that aren't offered in the prebuilt binaries. In this video we'll take a walk through what's needed to compile Python on Microsoft Windows, and what to expect from the process.
IMPORTANT! When you clone the Python source code from Github, make sure the absolute path to the directory does not have any spaces in it. This can cause the build tools to fail unexpectedly. E.g., don't use the directory C:\Python Source to clone into; use C:\PythonSource or C:\Python_Source.
For details about the fast way to install Visual Studio Build Tools from the command line, see my other video: www.infoworld....
For details about the JIT and free-threaded modes in Python 3.13 and beyond, see my other video: www.infoworld....
--------------------------------
SUBSCRIBE: www.youtube.com...
FACEBOOK: / infoworld
TWITTER: / infoworld
WEBSITE: www.infoworld.com/
Hello, do you mind sharing what are the steps to create the MSI installer for an older Python build (e.g. 3.9.20)? Thank you very much’
what is the git command to get the source code? Thanks for the video
git clone github.com/python/cpython.git
-Serdar
Thank you