FindPython not working in 3.18.3
We're seeing a FindPython issue after 3.18.2->3.18.3 upgrade. This was originally found when we build torchvision (a deep learning library), and think maybe this is a CMake issue: https://github.com/pytorch/vision/issues/2701
CMake Error at /usr/local/share/cmake-3.18/Modules/FindPython/Support.cmake:615 (if):
Syntax error in cmake code at
/usr/local/share/cmake-3.18/Modules/FindPython/Support.cmake:615
when parsing string
python${version_major}\.${version_minor}+([dmu]*)
Invalid escape sequence \.
Call Stack (most recent call first):
/usr/local/share/cmake-3.18/Modules/FindPython/Support.cmake:2756 (_python_get_version)
/usr/local/share/cmake-3.18/Modules/FindPython3.cmake:389 (include)
CMakeLists.txt:14 (find_package)
-- Configuring incomplete, errors occurred!
This PR may be the reason: !5181 (merged)