Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sysconfig in Python >= 3.10 #3764

Merged
merged 2 commits into from
Mar 1, 2022
Merged

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