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
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:
To see if we have alignment on the CEP for how to handle the site_package issue with 3.13
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.
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 islib/python3.13t/site-packages
@isuruf has already worked around the issue here: https://github.com/conda-forge/python-feedstock/commit/bdc3eebd6de855efc104feb181ba61430e5133ea for this feedstock.
It includes a workaround to add both directories to the
site
(viasite.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:
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.