Skip to content

Step 2 of enabling multipy support. - #2590

Merged
stellaraccident merged 1 commit into
iree-org:mainfrom
stellaraccident:multipy2
Jul 21, 2020
Merged

stellaraccident merged 1 commit into
iree-org:mainfrom
stellaraccident:multipy2

Conversation

@stellaraccident

Copy link
Copy Markdown
Collaborator
  • Adds a script to install deps and get configure args for all installed python versions.
  • Makes iree_py_test() multipy aware so that it runs a test for every version.
  • With this, extensions build for all python versions via the dockcross-manylinux2014 images. (tests are failing on an unrelated lld problem).

* Adds a script to install deps and get configure args for all installed python versions.
* Makes iree_py_test() multipy aware so that it runs a test for every version.
* With this, extensions build for all python versions via the dockcross-manylinux2014 images. (tests are failing on an unrelated lld problem).
@stellaraccident

Copy link
Copy Markdown
Collaborator Author

Note: submitting with CI still pending because the only diff is a python formatting config that I submitted separately and removed from this PR.

@stellaraccident
stellaraccident merged commit c8f906c into iree-org:main Jul 21, 2020
@stellaraccident
stellaraccident deleted the multipy2 branch July 21, 2020 20:55
ScottTodd added a commit that referenced this pull request Jul 21, 2020
This gets the CMake Python tests closer to running/passing on Windows. There was no regression in #2590, the old `iree_py_test.cmake` also had this issue.

`ctest -L bindings/python -V` output before:

```
353: Test command: D:\dev\projects\iree\build_tools\cmake\run_test.sh "C:/Users/Scott/scoop/shims/python3.exe" "D:/dev/projects/iree/bindings/python/pyiree/compiler/compiler_test.py"
353: Environment variables:
353:  PYTHONPATH=D:/dev/projects/iree-build-py/bindings/python:
353:  TEST_TMPDIR=bindings_python_pyiree_compiler_compiler_test_DEFAULT_test_tmpdir
353: Test timeout computed to be: 10000000
Process not started
 D:/dev/projects/iree/build_tools/cmake/run_test.sh
[unknown error]
5/5 Test #353: bindings/python/pyiree/compiler:compiler_test__DEFAULT ...***Not Run   0.00 sec
```

`ctest -L bindings/python -V` output after:

```
353: Test command: D:\dev\projects\iree\build_tools\cmake\run_test.bat "C:/Users/Scott/scoop/shims/python3.exe" "D:/dev/projects/iree/bindings/python/pyiree/compiler/compiler_test.py"
353: Environment variables:
353:  PYTHONPATH=D:/dev/projects/iree-build-py/bindings/python:
353:  TEST_TMPDIR=bindings_python_pyiree_compiler_compiler_test_DEFAULT_test_tmpdir
353: Test timeout computed to be: 10000000
353: Running test:
353: C:/Users/Scott/scoop/shims/python3.exe D:/dev/projects/iree/bindings/python/pyiree/compiler/compiler_test.py
353: Traceback (most recent call last):
353:   File "D:/dev/projects/iree/bindings/python/pyiree/compiler/compiler_test.py", line 17, in <module>
353:     from pyiree import compiler
353: ModuleNotFoundError: No module named 'pyiree'
5/5 Test #353: bindings/python/pyiree/compiler:compiler_test__DEFAULT ...***Failed    0.44 sec
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants