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

Switch to new IREE package names and versions. #258

Merged
merged 9 commits into from
Nov 9, 2024
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ commits locally, hooks will run. See https://pre-commit.com/
### Using a development compiler

If doing native development of the compiler, it can be useful to switch to
source builds for iree-compiler and iree-runtime.
source builds for iree-base-compiler and iree-base-runtime.

In order to do this, check out [IREE](https://github.com/openxla/iree) and
In order to do this, check out [IREE](https://github.com/iree-org/iree) and
follow the instructions to [build from source](https://iree.dev/building-from-source/getting-started/), making
sure to specify [additional options for the Python bindings](https://iree.dev/building-from-source/getting-started/#building-with-cmake):

Expand All @@ -130,11 +130,10 @@ sure to specify [additional options for the Python bindings](https://iree.dev/bu

#### Configuring python

Uninstall existing packages:
Uninstall existing packages (including any with the old package names):

```bash
pip uninstall iree-compiler
pip uninstall iree-runtime
pip uninstall iree-compiler iree-base-compiler iree-runtime iree-base-runtime
```

Copy the `.env` file from `iree/` to this source directory to get IDE
Expand Down
2 changes: 1 addition & 1 deletion build_tools/post_pypi_release_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WHEELHOUSE_DIR="${REPO_ROOT?}/wheelhouse"

# Use same environment from build_release, but uninstall the local wheels
source "${WHEELHOUSE_DIR}"/test.venv/bin/activate
pip uninstall -y shark-turbine iree-turbine iree-compiler iree-runtime
pip uninstall -y iree-turbine iree-base-compiler iree-base-runtime

# Install from pypi now that latest is released
pip install iree-turbine
Expand Down
16 changes: 6 additions & 10 deletions docs/releasing.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Releasing iree-turbine

This project hosts the https://pypi.org/project/iree-turbine/ package, which
depends on the https://pypi.org/project/iree-compiler/ and
https://pypi.org/project/iree-runtime/ packages. Releases can either be
depends on the https://pypi.org/project/iree-base-compiler/ and
https://pypi.org/project/iree-base-runtime/ packages. Releases can either be
conducted independently, or they can be coordinated across projects by
initiating a release here.

Expand All @@ -21,8 +21,8 @@ Build an official release:
```

This will download all deps, including wheels for all supported platforms and
Python versions for iree-compiler and iree-runtime. All wheels will be placed
in the `wheelhouse/` directory.
Python versions for iree-base-compiler and iree-base-runtime. All wheels will
be placed in the `wheelhouse/` directory.

## Testing

Expand All @@ -47,7 +47,7 @@ pip freeze
Push IREE deps (if needed/updated):

```bash
twine upload wheelhouse/iree_compiler-* wheelhouse/iree_runtime-*
twine upload wheelhouse/iree_base_compiler-* wheelhouse/iree_base_runtime-*
```

Push built wheels:
Expand All @@ -58,12 +58,8 @@ twine upload wheelhouse/iree_turbine-*

## Install from PyPI and Sanity Check

TODO: Script this

From the testing venv:

```bash
pip uninstall -y iree-turbine iree-compiler iree-runtime
pip install iree-turbine
pytest .
./build_tools/post_pypi_release_test.sh
```
9 changes: 6 additions & 3 deletions iree-requirements-ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
# forgiving on the exact version.

# Uncomment to select a nightly version.
--find-links https://iree.dev/pip-release-links.html
# --find-links https://iree.dev/pip-release-links.html

iree-compiler==20241107.1071
iree_runtime==20241107.1071
# Uncomment to skip versions from PyPI (so _only_ nightly versions).
# --no-index

iree-base-compiler<=2.9.0
ScottTodd marked this conversation as resolved.
Show resolved Hide resolved
iree-base-runtime<=2.9.0
4 changes: 2 additions & 2 deletions iree-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
iree-compiler
iree-runtime
iree-base-compiler
iree-base-runtime
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def initialize_options(self):
},
install_requires=[
f"numpy{get_version_spec('numpy')}",
f"iree-compiler{get_version_spec('iree-compiler')}",
f"iree-runtime{get_version_spec('iree-runtime')}",
f"iree-base-compiler{get_version_spec('iree-base-compiler')}",
f"iree-base-runtime{get_version_spec('iree-base-runtime')}",
"torch>=2.3.0",
f"Jinja2{get_version_spec('Jinja2')}",
],
Expand Down
Loading