Skip to content

Commit

Permalink
Catch the case when the Python_ROOT_DIR was cached but doesn't exist …
Browse files Browse the repository at this point in the history
…more reliable (Ubuntu 22.04 had this issue)
  • Loading branch information
jmarrec committed Apr 26, 2023
1 parent a00957a commit e131f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ if(BUILD_TESTING)
# ============ Native Ruby Gems / Python Modules - C extensions =============
if (Python_NumPy_FOUND)

if(NOT Python_ROOT_DIR)
if(NOT EXISTS "${Python_ROOT_DIR}")
# Python_STDLIB: we expect it to be
# Unix: ~/.pyenv/versions/3.8.12/lib/python3.8 or
# or on CI: /usr/lib/python3.8/ ... with numpy if install via pip3 and not apt install python3-numpy in `/usr/local/lib/python3.8/dist-packages/`
Expand Down

0 comments on commit e131f0f

Please sign in to comment.