Skip to content

Instantly share code, notes, and snippets.

@oleksis
Last active March 20, 2024 11:26
Show Gist options
  • Save oleksis/d2e0ae66590c9b63d97c5b44f83ef9d0 to your computer and use it in GitHub Desktop.
Save oleksis/d2e0ae66590c9b63d97c5b44f83ef9d0 to your computer and use it in GitHub Desktop.
Python Hello World with Emojis
  1. CPython fork: https://github.com/oleksis/cpython

  2. Clone and setup

git clone https://github.com/oleksis/cpython.git
cd cpython
# git remote add upstream https://github.com/python/cpython
# git config --local branch.main.remote upstream
# git remote set-url --push upstream [email protected]:<your-username>/cpython.git
code-insiders .
  1. Update the frozen module Lib\__hello__.py
def main():
    print("πŸ‘‹πŸ½ 🌍!")
  1. Compile

PCbuild\build.bat -p x64

    • Test Hello World!
C:\Users\oleksis\PYTHON\cpython\PCbuild\amd64\python.exe -m __hello__
πŸ‘‹πŸ½ 🌍!

Python-frozen-module-hello-world-2024-03-20-071750

  1. Please note that you’ll need Visual Studio installed on your machine to compile Python from source.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment