Skip to content

Conversation

@stefanor
Copy link
Contributor

Description

Rely on sysconfig for installation paths for Python >= 3.10. distutils has been deprecated and will be removed.

Fixes: #3677

Suggested changelog entry:

* Uses ``sysconfig`` module to determine installation locations on Python >= 3.10, instead of ``distutils`` which has been deprecated.

Rely on sysconfig for installation paths for Python >= 3.10. distutils
has been deprecated and will be removed.

Fixes: pybind#3677
Debian's default scheme is posix_local, for installing locally-built
packages to /usr/local/.  We want to find the Python headers in /usr/,
so search posix_prefix.
@henryiii henryiii closed this Mar 1, 2022
@henryiii henryiii reopened this Mar 1, 2022
@Skylion007 Skylion007 merged commit 465b2e0 into pybind:master Mar 1, 2022
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Mar 1, 2022
@stefanor stefanor deleted the sysconfig-py310 branch March 1, 2022 20:29
henryiii pushed a commit to henryiii/pybind11 that referenced this pull request Mar 2, 2022
* Use sysconfig in Python >= 3.10

Rely on sysconfig for installation paths for Python >= 3.10. distutils
has been deprecated and will be removed.

Fixes: pybind#3677

* Explicitly select the posix_prefix scheme for platinclude on Debian

Debian's default scheme is posix_local, for installing locally-built
packages to /usr/local/.  We want to find the Python headers in /usr/,
so search posix_prefix.
henryiii pushed a commit that referenced this pull request Mar 2, 2022
* Use sysconfig in Python >= 3.10

Rely on sysconfig for installation paths for Python >= 3.10. distutils
has been deprecated and will be removed.

Fixes: #3677

* Explicitly select the posix_prefix scheme for platinclude on Debian

Debian's default scheme is posix_local, for installing locally-built
packages to /usr/local/.  We want to find the Python headers in /usr/,
so search posix_prefix.
@henryiii henryiii removed the needs changelog Possibly needs a changelog entry label Mar 29, 2022
Mizux added a commit to Mizux/bazel-pybind11 that referenced this pull request Apr 11, 2022
roigcarlo added a commit to KratosMultiphysics/Kratos that referenced this pull request Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Distutils is going to be deprecated with Python3.12

4 participants