How to Compile Python 3.13 Without the GIL: Step-by-Step Guide

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • In this video, we will walk you through the process of compiling Python 3.13 without the Global Interpreter Lock (GIL). Removing the GIL can improve the performance of multi-threaded Python programs.
    commands:
    sudo apt install build-essential
    sudo apt install libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev
    sudo apt install libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev libffi-dev
    git clone --single-branch -b 3.13 github.com/pyt...
    ./configure --disable-gil --enable-optimizations --with-lto
    make -j 32

Комментарии •