Skip to content

python3 spkg-configure: Only search for "python3", implement "configure --with-python=/PATH/TO/PYTHON" #30546

@dimpase

Description

@dimpase

We make the configure search for a suitable python3 more straightforward.

Instead of searching for various names such as python3.8, python3.7 etc., we only look for python3.

As is standard practice, users will set their PATH so that the python3 that is accessible from the PATH is the desired Python version.

As an additional mechanism, we add configure --with-python=/PATH/TO/PYTHON. In contrast to the (undocumented) configure PYTHON3=/PATH/TO/PYTHON, it runs the usual tests whether this python is actually suitable.

Depends on #30576
Depends on #29500

CC: @mkoeppe @embray @orlitzky

Component: build: configure

Author: Matthias Koeppe, Dima Pasechnik

Branch/Commit: f19d9a4

Reviewer: Dima Pasechnik, Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/30546

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions