Skip to content

Conversation

cyyever
Copy link
Contributor

@cyyever cyyever commented Sep 22, 2024

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.

Signed-off-by: cyy <cyyever@outlook.com>
@cyyever cyyever requested a review from a team as a code owner September 22, 2024 00:51
@cyyever cyyever marked this pull request as draft September 22, 2024 00:51
Copy link

codecov bot commented Sep 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.23%. Comparing base (b196423) to head (2a999c2).
Report is 340 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

Signed-off-by: cyy <cyyever@outlook.com>
@cyyever cyyever changed the title Re-enable w4251 on Windows and disable w4146 Re-enable w4251, on Windows and disable w4146 Sep 22, 2024
@cyyever cyyever changed the title Re-enable w4251, on Windows and disable w4146 Re-enable w4251,w4996 and disable w4146 on Windows Sep 22, 2024
@cyyever cyyever changed the title Re-enable w4251,w4996 and disable w4146 on Windows Refine warnings on Windows and other CMake fixes Sep 22, 2024
@cyyever cyyever marked this pull request as ready for review September 22, 2024 01:54
@cyyever cyyever force-pushed the onnx_win branch 2 times, most recently from f23305a to 694bfa9 Compare September 22, 2024 02:28
@cyyever cyyever marked this pull request as draft September 22, 2024 02:30
@cyyever cyyever force-pushed the onnx_win branch 3 times, most recently from f8596f7 to 1d17001 Compare September 22, 2024 03:14
@cyyever cyyever marked this pull request as ready for review September 22, 2024 03:37
@cyyever cyyever changed the title Refine warnings on Windows and other CMake fixes Some CMake fixes for Windows Sep 22, 2024
@justinchuby
Copy link
Member

Could you explain in PR description what errors were fixed?

@cyyever cyyever requested a review from justinchuby September 22, 2024 04:48
@cyyever
Copy link
Contributor Author

cyyever commented Sep 22, 2024

More details were added to the PR description.

@andife andife added the run release CIs Use this label to trigger release tests in CI label Sep 22, 2024
@justinchuby
Copy link
Member

Could NOT find Python (missing: Python_INCLUDE_DIRS Python_LIBRARIES
Interpreter Development Development.Module Development.Embed)
Call Stack (most recent call first):
/tmp/build-env-qekth2v4/lib/python3.8/site-packages/cmake/data/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
/tmp/build-env-qekth2v4/lib/python3.8/site-packages/cmake/data/share/cmake-3.30/Modules/FindPython.cmake:672 (find_package_handle_standard_args)
CMakeLists.txt:108 (find_package)

@justinchuby
Copy link
Member

@cyyever
Copy link
Contributor Author

cyyever commented Sep 23, 2024

@justinchuby Should be fixed by passing Python_INCLUDE_DIRS from setup.py to CMake. Feel free to trigger more CI tests.

@andife andife added run release CIs Use this label to trigger release tests in CI and removed run release CIs Use this label to trigger release tests in CI labels Sep 23, 2024
@justinchuby justinchuby added run release CIs Use this label to trigger release tests in CI and removed run release CIs Use this label to trigger release tests in CI labels Sep 24, 2024
@andife
Copy link
Member

andife commented Sep 24, 2024

@andife is it possible for the workflows to be triggered by pull requests, once the label is present?

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.

@justinchuby
Copy link
Member

@andife is it possible for the workflows to be triggered by pull requests, once the label is present?

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?

@cyyever cyyever force-pushed the onnx_win branch 4 times, most recently from 4868b8e to fe8bfb2 Compare September 24, 2024 06:05
@cyyever cyyever marked this pull request as draft September 24, 2024 06:12
…n executable

Signed-off-by: cyy <cyyever@outlook.com>
@cyyever cyyever marked this pull request as ready for review September 24, 2024 06:49
@cyyever cyyever changed the title Some CMake fixes for Windows Improved Python finding logic and some CMake fixes for Windows Sep 24, 2024
@cyyever cyyever changed the title Improved Python finding logic and some CMake fixes for Windows Revert Python finding logic and some CMake fixes for Windows Sep 24, 2024
@justinchuby justinchuby added run release CIs Use this label to trigger release tests in CI and removed run release CIs Use this label to trigger release tests in CI labels Sep 24, 2024
Copy link
Member

@justinchuby justinchuby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@justinchuby justinchuby added this pull request to the merge queue Sep 25, 2024
Merged via the queue into onnx:main with commit d14634e Sep 25, 2024
73 checks passed
@cyyever cyyever deleted the onnx_win branch September 25, 2024 02:14
linshokaku pushed a commit to linshokaku/onnx that referenced this pull request Oct 2, 2024
### 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>
@ramkrishna2910 ramkrishna2910 added the topic: build Issues related to ONNX builds and packages label May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run release CIs Use this label to trigger release tests in CI topic: build Issues related to ONNX builds and packages
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants