Skip to content

Add python_site_packages_path for 3.13 GIL/free threading support #715

Open
@intentionally-left-nil

Description

Comment:

One challenge for Python 3.13 is that the location of the site_packages changes depending on which version is installed.
The GIL location is lib/python3.13/site-packages and the Free Threading version is lib/python3.13t/site-packages

@isuruf has already worked around the issue here: bdc3eeb for this feedstock.

It includes a workaround to add both directories to the site (via site.addsitedir(d)) so that python will find packages installed into either place.

In order to make this system more robust, and have better support for the broader conda ecosystem (e.g. packages built by Anaconda, conda-forge) as well as other python runtimes, there's a CEP proposal

to add python_site_packages_path to the feedstock.

There's a few followup items for conda-forge:

  1. To see if we have alignment on the CEP for how to handle the site_package issue with 3.13
  2. To update the feedstock to set the python_site_packages_path metadata appropriately.

@isuruf gave an ✅ approval to the CEP - awesome! Are there any other folks who need to look at this from the conda-forge side?

If we're aligned on the path forwards, we can implement the second task in the conda-forge feedstock once conda-build is updated to know about the new field.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions