ccmake Could NOT find PythonInterp
Description
I can not configure kiCAD with KICAD_SCRIPTING_PYTHON3 and KICAD_SCRIPTING_WXPYTHON
Steps to reproduce
git clone https://gitlab.com/kicad/code/kicad.git
cd kicad-source-mirror
mkdir build
cd build
ccmake ..
Then set KICAD_SCRIPTING_PYTHON3, KICAD_SCRIPTING_WXPYTHON_PHOEN and KICAD_SCRIPTING_WXPYTHON on. And see error Could NOT find PythonInterp: Found unsuitable version "2.7.18", but required is at least "3.3" (found /usr/bin/python2)
If I reset KICAD_SCRIPTING_PYTHON3, KICAD_SCRIPTING_WXPYTHON_PHOEN and KICAD_SCRIPTING_WXPYTHON, ccmake ocasionally finds python3 and configures successfully.
This is mislogic.
KiCad Version
Application: KiCad
Version: (5.99.0-8444-g68efdb2fff), release build
Libraries:
wxWidgets 3.0.5
libcurl/7.74.0 GnuTLS/3.7.0 zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.42.0 librtmp/2.3
Platform: Linux 5.9.15 x86_64, 64 bit, Little endian, wxGTK, gnome, x11
Build Info:
Date: Jan 17 2021 13:56:44
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.74.0
OCE: 6.9.1
Curl: 7.74.0
ngspice: 33
Compiler: GCC 10.2.1 with C++ ABI 1014
Build settings:
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=OFF
KICAD_SCRIPTING_WXPYTHON=OFF
KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
KICAD_SCRIPTING_ACTION_MENU=ON
KICAD_USE_OCE=ON
KICAD_SPICE=ON
Edited by Michael Kavanagh