deps: install setuptools on python 3.12+
Some checks failed
Python Formatting Check / formatting (push) Has been cancelled
Tests / Run tests (3.12) (push) Has been cancelled
Tests / Run tests (3.8) (push) Has been cancelled

distutils was removed beginning in Python 3.12, but it's used at
runtime by rethinkdb 2.4.9. setuptools provides a copy of distutils,
so we should make sure to install it when we're on Python 3.12 or
newer until we're able to upgrade to a version of rethinkdb that
no longer needs it.

See: https://www.python.org/downloads/release/python-3120/
This commit is contained in:
Misty De Méo 2025-03-07 17:09:40 -08:00 committed by Misty De Méo
parent 65b0b5f50b
commit 353cc1b9fd
2 changed files with 19 additions and 1 deletions

View file

@ -88,6 +88,9 @@ setuptools.setup(
"rethinkdb": [
"rethinkdb==2.4.9",
"doublethink==0.4.9",
# Needed because of rethinkdb 2.4.9;
# can be removed when we can upgrade to 2.4.10.post1
"setuptools>=75.8.0;python_version>='3.12'",
],
},
zip_safe=False,