Skip to content
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

Find python libs only if BUILD_ONNX_PYTHON is set to ON #4579

Merged
merged 4 commits into from Oct 13, 2022

Conversation

ilya-lavrenov
Copy link
Contributor

Description

Before this change, Python Libraries are found unconditionally and several cache variables are set.

Motivation and Context

Python libraries search is not a simple algorithm and if we use pybind11 in the project, it searches libraries in a different way. This leads to a conflict, so the simple solution - don't find python libraries if they are not really needed

@ilya-lavrenov ilya-lavrenov requested a review from a team as a code owner October 9, 2022 16:59
Signed-off-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
@jcwchen jcwchen added the run release CIs Use this label to trigger release tests in CI label Oct 10, 2022
@jcwchen jcwchen added the build Issues related to ONNX builds and packages label Oct 12, 2022
@ilya-lavrenov
Copy link
Contributor Author

Hi team,

Anything else I can help to get it merged?

Copy link
Member

@jcwchen jcwchen left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution!

@jcwchen jcwchen enabled auto-merge (squash) October 13, 2022 22:51
@jcwchen jcwchen merged commit cd6e2f2 into onnx:main Oct 13, 2022
@ilya-lavrenov ilya-lavrenov deleted the onnx-python branch October 14, 2022 07:25
justinchuby pushed a commit to justinchuby/onnx that referenced this pull request Jan 27, 2023
Signed-off-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

Signed-off-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: Chun-Wei Chen <jacky82226@gmail.com>
broune pushed a commit to broune/onnx that referenced this pull request May 6, 2023
Signed-off-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

Signed-off-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: Chun-Wei Chen <jacky82226@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues related to ONNX builds and packages run release CIs Use this label to trigger release tests in CI
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants