Skip to content

Fix iree_py_library and iree_pyext_module dependency issue - #5907

Merged
antiagainst merged 1 commit into
iree-org:mainfrom
antiagainst:fix-python-dep
May 17, 2021
Merged

antiagainst merged 1 commit into
iree-org:mainfrom
antiagainst:fix-python-dep

Conversation

@antiagainst

Copy link
Copy Markdown
Member

The bindings_python_iree_runtime_runtime target tries to
depend on ::PyExtRt. It requires to have a namespaced alias
for bindings_python_iree_runtime_PyExtRt.

By default if() in CMake dereferences the variable, after the
normal ${} evaulation. If we have if($SOME_VAR), it will
dereference twice. More details can be seen at:
https://cmake.org/cmake/help/latest/command/if.html#variable-expansion

IREE_MULTIPY_VERSIONS_EFFECTIVE is already gone.

The `bindings_python_iree_runtime_runtime` target tries to
depend on `::PyExtRt`. It requires to have a namespaced alias
for `bindings_python_iree_runtime_PyExtRt`.

By default `if()` in CMake dereferences the variable, after the
normal `${}` evaulation. If we have `if($SOME_VAR)`, it will
dereference twice. More details can be seen at:
https://cmake.org/cmake/help/latest/command/if.html#variable-expansion

IREE_MULTIPY_VERSIONS_EFFECTIVE is already gone.
@google-cla google-cla Bot added the cla: yes label May 14, 2021
@antiagainst antiagainst added bindings/python Python wrapping IREE's C API infrastructure/cmake labels May 14, 2021
@antiagainst
antiagainst requested a review from benvanik May 17, 2021 14:37
@antiagainst
antiagainst enabled auto-merge (squash) May 17, 2021 18:41
@antiagainst
antiagainst merged commit 739a596 into iree-org:main May 17, 2021
@antiagainst
antiagainst deleted the fix-python-dep branch May 17, 2021 19:13
@hanhanW hanhanW mentioned this pull request May 17, 2021
@GMNGeoffrey GMNGeoffrey added the infrastructure Relating to build systems, CI, or testing label May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bindings/python Python wrapping IREE's C API infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants