]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
favor setuptools imports over distutils
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 15 Nov 2021 20:06:06 +0000 (15:06 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Nov 2021 16:21:40 +0000 (11:21 -0500)
commitba763a146f450dcd56e4f1072a28a662ef684ac1
treea01ca8f1faf1d688e28df3562e98fee525b5e475
parentb2b759bdaef3bfc45f89d4e151e298693910dec2
favor setuptools imports over distutils

Python 3.10 has deprecated "distutils" in favor of explicit use of
"setuptools" in :pep:`632`; SQLAlchemy's setup.py has replaced imports
accordingly. However, since setuptools itself only recently added the
replacement symbols mentioned in pep-632 as of November of 2022 in version
59.0.1, ``setup.py`` still has fallback imports to distutils, as SQLAlchemy
1.4 does not have a hard setuptools versioning requirement at this time.
SQLAlchemy 2.0 is expected to use a full :pep:`517` installation layout
which will indicate appropriate setuptools versioning up front.

Fixes: #7311
Change-Id: I215ef3c3b226a38266f59d181214aea462c4664d
(cherry picked from commit e6c02c33728a581e0df910caa8d96b6e114c114d)
doc/build/changelog/unreleased_14/7311.rst [new file with mode: 0644]
setup.py