Blender Git Loki

Git Commits -> Revision 2da2527

April 10, 2020, 15:10 (GMT)
Tests: On Linux, use Python from install dir

CentOS on the buildbot still runs Python 3.6, which is also used for the
unit tests. This means that the tests can't use language features that
are available to Blender itself. And testing with a different version of
Python than will be used by the actual code seems like a bad idea to me.

This commit tries to find Python in the installation directory, which
will not be there on the first time CMake is run, so it also tries to
find it in the precompiled libraries. If that also fails, it defaults to
whichever Python executable CMake finds.

Differential Revision: https://developer.blender.org/D7395

Commit Details:

Full Hash: 2da252735061094367ddc70e0521f3f8ef90abb1
Parent Commit: 03dda57
Lines Changed: +23, -2

2 Modified Paths:

/tests/CMakeLists.txt (+22, -1) (Diff)
/tests/python/CMakeLists.txt (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021