-
Notifications
You must be signed in to change notification settings - Fork 383
Use MLIR python detection environment #8037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm all for using things from upstream if they work!
|
I think this may have broken the ability to build wheels on Linux. I actually updated this to not use the upstream helpers based on the discussion here: https://discourse.llvm.org/t/psa-python-binding-dependencies-changing/83376. That did break the ability to build wheels on MacOS, and I was trying to test some fixes for that, when I noticed the Linux wheel build is now broken: https://github.com/llvm/circt/actions/runs/12659976325/job/35280207153#step:6:7841 It's interesting that the failure matches the failures we've been seeing on MacOS... it seems like we are getting closer to understanding what's going wrong. I'm not positive this change was the culprit, so I'll open a revert PR and kick off a wheel build on that PR to see if it succeeds. |
This reverts commit ab5dc6c.
Original issue (on my side, git-tag 1.99.2) was:
I noticed the proper setup of python environment here for booth external (non mono-repo) and internal projects.
|
Hmm that is interesting, this is covered in the pre-merge CI. I think we'd need to know more about your environment to understand why it didn't work. I very much want to use the same setup example as the standalone project... if we can make it work for building wheels.
Yeah, unfortunately the issue only popped up in the Upload Wheels job, which is not tested before merge. It runs weekly, or on release. This was failing on MacOS after my original changes in CMakeLists.txt, and started failing on Linux as well after this PR. |
This PR make CIRCT to relay on the very MLIR cmake python detection macros.
It now properly picks up
pythoncomponents includingpybind11and the recently introducednanobind.Here is how this is used upstream .
Here is the cmake process output:
Thank you !