Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: remove dependency on
Debian based packages of Python 3 do not include `distutils.spawn` and require an additional apt package to be installed (`python3-distutils`). Replace use of `distutils.spawn` with `shutil.which`, available in all versions of Python currently allowed by our configure scripts. For the `configure` script only, fall back to `distutils.spawn` to allow friendlier error messages when run on older unsupported versions of Python (e.g. 2.7). `configure.py` also uses `distutils.version` -- this appears to be available in Debian packaged Python 3 without installing `python3-distutils` so has been left as-is. PR-URL: #38600 Refs: #30189 Reviewed-By: Darshan Sen <email@example.com> Reviewed-By: Rich Trott <firstname.lastname@example.org> Reviewed-By: Christian Clauss <email@example.com> Reviewed-By: James M Snell <firstname.lastname@example.org>
- Loading branch information
Showing with 6 additions and 10 deletions.