HomePhabricator

[CMAKE] Consistently find and use the python interpreter

Description

[CMAKE] Consistently find and use the python interpreter

Summary:
Some of the python scripts rely on the shebang, some of them search for
the python program, the behavior is inconsistent across the files.

This diff makes use of find_package to get the python interpreter
executable path. This allow for failing with a meaningful error message
if python is not found or does not match the minimum version.

Depends on D4143.

Test Plan:

mkdir buildcmake && cd buildcmake
cmake -GNinja ..
ninja check
ninja check-functional
ninja bench-bitcoin

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D4144

Details

Provenance
FabienAuthored on Sep 24 2019, 08:29
FabienPushed on Sep 24 2019, 15:20
Reviewer
Restricted Project
Differential Revision
D4144: [CMAKE] Consistently find and use the python interpreter
Parents
rABC46261be23880: [CMAKE] Migrate the python header generation scripts to python 3
Branches
Unknown
Tags
Unknown