blob: 4eed23232d4fbce0649e78df3bf3489f00da987b [file] [log] [blame] [view]
Stella Laurenzo41a2ceb2022-04-29 12:49:36 -07001# IREE Compiler
2
3This directory contains the IREE compiler sources.
4
5## Standalone Python Builds
6
7The included `setup.py` file can be used to build Python binaries or directly
8install the IREE compiler API. Do note that the compiler is quite heavy and
9unless you are developing it and on a significant machine, you will want to
10use released binaries.
11
12There are two ways to build/install Python packages:
13
14* Directly from the source tree (this is how official releases are done).
15* From the build directory while developing.
16
17It is recommended to use your favorite method for managing
18[virtual environemnts](https://docs.python.org/3/library/venv.html) instead
19of modifying the system installation.
20
21Only relatively recent versions of `pip` are supported. Always use the latest
22via `pip install --upgrade pip`.
23
24You can build either from the source or build tree (assumes that CMake has
25been configured and the project built). The latter is typically used by
26project developers who are already setup for development and want to
27incrementally generate Python packages without rebuilding.
28
29To build a wheel that can be installed on the same Python version and OS:
30
31```
32python -m pip wheel compiler/
33```
34
35To directly install:
36
37```
38python -m pip install compiler/
39```