pho ramen soba

Friday, 7 June 2024

building python 3.13.0 beta 2 on linux mint 21.3

Python 3.13.0 Beta 2 was released Thursday 6 June by the Python Foundation (see link to announcement below). I downloaded the sources and built it. Here's what I did to set up a build environment for this beta release and the features I selected to build…
Read on blog or Reader
Site logo image Arcane Science Lab Read on blog or Reader

building python 3.13.0 beta 2 on linux mint 21.3

whbeebe

June 7

Python 3.13.0 Beta 2 was released Thursday 6 June by the Python Foundation (see link to announcement below). I downloaded the sources and built it. Here's what I did to set up a build environment for this beta release and the features I selected to build this beta.

Install Build Prerequisites

You need to install the following packages in order to build every module in Python. There is one additional package dependency that Python 3.13 will need to build, and it's libmpdec-dev. Every other Python version prior to 3.13 did not need this package installed.

  sudo apt install zlib1g-dev \  libncurses5-dev \  libgdbm-dev \  libnss3-dev \  libssl-dev \  libreadline-dev \  libffi-dev \  libsqlite3-dev \  libbz2-dev \  tk \  tk-dev \  liblzma-dev \  libgdbm-compat-dev \  libmpdec-dev  

Build And Install Python 3.13.0 Beta 2

  • Download the latest beta Python version from https://www.python.org/downloads/release/python-3130b2/
  • Untar the file into a work folder of your choice.
  • Make a build directory at the same level as the untarred source directory.
  • From within the build directory execute the configure script. In this example we're building Python 3.13.0b1.
    ../Python-3.13.0b2/configure --enable-optimizations --disable-gil
    Note that we are disabling the GIL with this build, which gives us an experimental free-threaded build.
  • Within the build directory run make.
  • Install into the alternate location for this version of Python:
    sudo -H make altinstall
  • Check for the alternate location with which python3.13 . It should return /usr/local/bin/python3.13 .

Create A Virtual Work Environment

  • In your home directory create a work folder. On my system I named it 'VPython', but you can call it whatever you want.
  • Change directory into it, then create a Python virtual environment using, as an example, python3.13 -m venv 313.
  • There is a bin directory in the virtual directory you created, which in this example was 313. Start the environment with source 313/bin/activate .

I created an alias so that typing 313 in any shell starts the environment. The alias should source the full path and the script in the virtual environment's bin directory. When active, typing deactivate drops you back to a regular shell environment. See the following screen capture.

Python 3.13 beta 2
Python 3.13 beta 2

The biggest change this beta release is the disabled GIL, or Global Interpreter Lock. The biggest reason for removing the GIL is performance, especially when attempting concurrent processing. We shall see.

Announcement

Python 3.13.0 beta 2 released -- https://pythoninsider.blogspot.com/2024/06/python-3130-beta-2-released.html

Comment
Like
You can also reply to this email to leave a comment.

Arcane Science Lab © 2024. Manage your email settings or unsubscribe.

WordPress.com and Jetpack Logos

Get the Jetpack app

Subscribe, bookmark, and get real-time notifications - all from one app!

Download Jetpack on Google Play Download Jetpack from the App Store
WordPress.com Logo and Wordmark title=

Automattic, Inc. - 60 29th St. #343, San Francisco, CA 94110  

at June 07, 2024
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

NEW! Creamy Curried Black Eyed Pea Soup

Your New Year's dinner is planned: creamy, gingery black eyed pea soup! Simple methods, made in 1 pot & it...

  • [New post] This tried-and-true Irish pub-inspired soup is creamy and thick with chunks of potatoes and leeks throughout.
    Emily Morgan posted: "This tried-and-true Irish pub-inspired soup is creamy and thick with chunks of potatoes and leeks thr...
  • LA COURONNE LYONNAISE, TWO WAYS
    This bread originates in Lyon, and is shaped as a crown, therefore the name ...
  • Keto Chicken Pot Pie Casserole (Gluten-Free)
    INGREDIENTS US CustomaryMetric▢4 cups cooked chicken breast (roasted, rotisserie...

Search This Blog

  • Home

About Me

phoo, ramen, soba
View my complete profile

Report Abuse

Blog Archive

  • December 2025 (17)
  • November 2025 (18)
  • October 2025 (21)
  • September 2025 (19)
  • August 2025 (28)
  • July 2025 (25)
  • June 2025 (28)
  • May 2025 (34)
  • April 2025 (36)
  • March 2025 (39)
  • February 2025 (36)
  • January 2025 (43)
  • December 2024 (46)
  • November 2024 (51)
  • October 2024 (44)
  • September 2024 (1172)
  • August 2024 (1572)
  • July 2024 (1413)
  • June 2024 (1289)
  • May 2024 (1362)
  • April 2024 (1472)
  • March 2024 (1827)
  • February 2024 (2413)
  • January 2024 (2936)
  • December 2023 (2135)
  • November 2023 (1639)
  • October 2023 (1285)
  • September 2023 (918)
  • August 2023 (864)
  • July 2023 (795)
  • June 2023 (800)
  • May 2023 (796)
  • April 2023 (754)
  • March 2023 (649)
  • February 2023 (736)
  • January 2023 (1159)
  • December 2022 (968)
  • November 2022 (921)
  • October 2022 (852)
  • September 2022 (708)
  • August 2022 (766)
  • July 2022 (877)
  • June 2022 (684)
  • May 2022 (716)
  • April 2022 (698)
  • March 2022 (781)
  • February 2022 (734)
  • January 2022 (955)
  • December 2021 (1387)
  • November 2021 (3002)
  • October 2021 (3213)
  • September 2021 (3188)
  • August 2021 (3232)
  • July 2021 (1697)
Powered by Blogger.