-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Tested libtorrent 2.0.11 against Python 3.14.2. The core library and bindings work perfectly—all 94 tests pass—but the build fails because distutils is gone.
We need to swap distutils.sysconfig for sysconfig in two places:
- bindings/python/CMakeLists.txt
diff
- import distutils.sysconfig
- print(distutils.sysconfig.get_python_lib(prefix='', plat_specific=True))
+ import sysconfig
+ print(sysconfig.get_path('platlib', vars={'platbase': '', 'base': ''}))
- bindings/python/Jamfile
diff
- python-path = [ SHELL "$(python-interpreter) -c \"import distutils.sysconfig; import sys; sys.stdout.write(distutils.sysconfig.get_python_lib())\"" ] ;
+ python-path = [ SHELL "$(python-interpreter) -c \"import sysconfig; import sys; sys.stdout.write(sysconfig.get_path('platlib'))\"" ] ;
With these applied, Python 3.14 support is fully functional. We should also update cibuildwheel to include 3.14 in the CI matrix.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels