forked from stellaraccident/mlir-py-release
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce4d60e
commit 9206809
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# MLIR Python Release Scripts | ||
|
||
This repository contains setup and packaging scripts for MLIR related | ||
projects that need to build together. They may eventually go to their | ||
respective homes, but developing them together for now helps. | ||
|
||
## Prep | ||
|
||
This repository is meant to be checked out adjacent to source repositories: | ||
|
||
* `../llvm-project` : https://github.com/llvm/llvm-project.git | ||
* `../mlir-npcomp` : https://github.com/llvm/mlir-npcomp.git | ||
|
||
### Create a virtual environment: | ||
|
||
Not strictly necessary, and if you know what you are doing, do that. Otherwise: | ||
|
||
```shell | ||
python -m venv create ~/.venv/mlir | ||
source ~/.venv/mlir/bin/activate | ||
``` | ||
|
||
### Install common dependencies: | ||
|
||
```shell | ||
python -m pip -r requirements.txt | ||
``` | ||
|
||
NOTE: Some older distributions still have `python` as python 2. Make sure you | ||
are running python3, which on these systems is often `python3`. | ||
|
||
## Install into current python environment | ||
|
||
If you are just looking to get packages that you can import and use, do: | ||
|
||
```shell | ||
python ./setup_mlir.py install | ||
``` | ||
|
||
## Build wheel files (installable archives) | ||
|
||
```shell | ||
python ./setup_mlir.py bdist_wheel | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
numpy>=1.19.4 | ||
pybind11>=2.6.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters