Skip to content

Define Python_FIND_VIRTUALENV in addition to Python3_FIND_VIRTUALENV#4004

Merged
ScottTodd merged 1 commit intollvm:mainfrom
dbabokin:python_venv
May 27, 2025
Merged

Define Python_FIND_VIRTUALENV in addition to Python3_FIND_VIRTUALENV#4004
ScottTodd merged 1 commit intollvm:mainfrom
dbabokin:python_venv

Conversation

@dbabokin
Copy link
Copy Markdown
Contributor

@dbabokin dbabokin commented Feb 7, 2025

MLIR searches for both Python3 and Python. If both variables are not defined equally and there multiple python versions on the system, CMake may behave really weirdly.

More details here: llvm/llvm-project#126162

So I grepped for all instances of Python3_FIND_VIRTUALENV and added similar Python_FIND_VIRTUALENV definition.

@dbabokin
Copy link
Copy Markdown
Contributor Author

dbabokin commented Feb 8, 2025

The fails in the CI are unrelated to the changes in this PR and they show up in other PR as well.

@dbabokin
Copy link
Copy Markdown
Contributor Author

All green. Need someone to review and approve.

@marbre
Copy link
Copy Markdown
Member

marbre commented Apr 30, 2025

Thanks @dbabokin! Can you resolve the conflicts thus we can merge this? I guess we could also set the one option based on the other a little deeper in CMake world? But this also works for me.

@marbre marbre requested review from ScottTodd and marbre April 30, 2025 13:20
Comment thread docs/development.md Outdated
MLIR searches for both Python3 and Python. If both variables are not
defined equally and there multiple python version on the system, CMake
may behave really weirdly.

More details here: llvm/llvm-project#126162
@dbabokin
Copy link
Copy Markdown
Contributor Author

I've updated the PR, sorry for such long response time. The fix seem to be still relevant.

CI fails are really weird - looks like Github a broken 😨 I suggest re-running CI jobs.

@ScottTodd
Copy link
Copy Markdown
Member

CI fails are really weird - looks like Github a broken 😨 I suggest re-running CI jobs.

Indeed. They succeeded on a retry.

@ScottTodd ScottTodd merged commit 716303a into llvm:main May 27, 2025
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants