Changes between Initial Version and Version 36 of Ticket #30546


Ignore:
Timestamp:
Sep 21, 2020, 5:36:03 PM (2 years ago)
Author:
Matthias Köppe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30546

    • Property Status changed from new to needs_work
    • Property Authors changed from Dima Pasechnik to
    • Property Summary changed from make sure the newest system python3 is selected to python3 spkg-configure: Only search for "python3", implement "configure --with-python=/PATH/TO/PYTHON"
    • Property Priority changed from critical to major
    • Property Branch changed from u/dimpase/packages/python3conf to
    • Property Commit changed from 3add5ca179ba42ba7c3136eba5b2be674572c09a to
  • Ticket #30546 – Description

    initial v36  
    1 #29033 has introduced an unfortunate bug related to a weird search order in `AC_PATH_PROGS_FEATURE_CHECK()`, which has the outer loop over PATH entries. Thus, a python on the list `[python.foo python.baz ....]` of pythons that comes first in `PATH` and has all the features will be picked, not the first python on the list.
     1We make the `configure` search for a suitable `python3` more straightforward.
    22
    3 As modifying `PATH` to put the best python 1st might be error-prone (think about Conda, Homebrew, etc), this is fixed by providing an using a modified
    4 version of `AC_PATH_PROGS_FEATURE_CHECK`, called `SAGE_PATH_PROGS_FEATURE_CHECK`.
     3Instead of searching for various names such as `python3.8`, `python3.7` etc., we only look for `python3`.
    54
    6 This is of course an autoconf bug, too, as e.g. `AC_PATH_PROGS()` has a sane order, ie. its outer loop is over the list entries.
     5As is standard practice, users will set their `PATH` so that the `python3` that is accessible from the `PATH` is the desired Python version.
     6
     7As 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.
     8