HomeClusterLabs Projects
Diffusion Booth 1fea4d0f2fa6

build: allow to override path to python without failing version checks
1fea4d0f2fa6Unpublished

Unpublished Commit · Learn More

  • Repository Importing: This repository is still importing.
  • Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

build: allow to override path to python without failing version checks

https://www.gnu.org/software/automake/manual/html_node/Python.html

If we configure with: ./configure PYTHON=/usr/bin/python2
the current call to AM_PATH_PYTHON will fail to detect version >= 3.3

As explained in the AM_PATH_PYTHON documentation:

"If the PYTHON variable is set when AM_PATH_PYTHON is called,
then that will be the only Python interpreter that is tried."

and AM_PATH_PYTHON will fail with error, without moving to
action-if-not-found, because it is found, but in the incorrect version.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Reviewed-by: Jan Pokorný <jpokorny@redhat.com>

Details

Provenance
fabbioneAuthored on Sep 24 2019, 7:56 AM
Parents
rB95e25c6282e3: build: deal with recent libxml2 (pkg-config in place of xml2-config)
Branches
Unknown
Tags
Unknown

Event Timeline