-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Revert Python finding logic and some CMake fixes for Windows #6382
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
Signed-off-by: cyy <cyyever@outlook.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6382 +/- ##
=======================================
Coverage 57.23% 57.23%
=======================================
Files 507 507
Lines 31406 31406
Branches 4690 4690
=======================================
Hits 17975 17975
Misses 12576 12576
Partials 855 855 ☔ View full report in Codecov by Sentry. |
Signed-off-by: cyy <cyyever@outlook.com>
f23305a
to
694bfa9
Compare
f8596f7
to
1d17001
Compare
Could you explain in PR description what errors were fixed? |
More details were added to the PR description. |
Could NOT find Python (missing: Python_INCLUDE_DIRS Python_LIBRARIES |
@justinchuby Should be fixed by passing Python_INCLUDE_DIRS from setup.py to CMake. Feel free to trigger more CI tests. |
I think I have a variant of how this could be implemented, I am currently not aware of any out-of-box variant, so I would have to delve deeper into the documentation. |
Would something like trigger by pull request, and if the trigger is PR && label is not present, skip the workflow work? |
4868b8e
to
fe8bfb2
Compare
…n executable Signed-off-by: cyy <cyyever@outlook.com>
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.
Thanks!
### Description <!-- - Describe your changes. --> Revert the python finding logic introduced by onnx#6381 due to unable to handle Conda builds. However, the Python executable detection was improved. In addition, some Windows warnings were re-enabled, and the hidden visibility of onnx_cpp2py_export was fixed. ### Motivation and Context For better code. <!-- - Why is this change required? What problem does it solve? --> <!-- - If it fixes an open issue, please link to the issue here. --> --------- Signed-off-by: cyy <cyyever@outlook.com> Signed-off-by: Linsho Kaku <linsho@preferred.jp>
Description
Revert the python finding logic introduced by #6381 due to unable to handle Conda builds. However, the Python executable detection was improved. In addition, some Windows warnings were re-enabled, and the hidden visibility of onnx_cpp2py_export was fixed.
Motivation and Context
For better code.