Skip to content

Commit d291460

Browse files
committed
rename
1 parent 6d9143e commit d291460

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
-f https://github.com/makslevental/mlir-wheels/releases/expanded_assets/latest \
4040
-f https://llvm.github.io/torch-mlir/package-index/
4141
if [ ${{ matrix.os }} == 'windows-2022' ]; then
42-
# configure-mlir-utils.exe -y torch_mlir
42+
# configure-mlir-python-utils.exe -y torch_mlir
4343
pushd /tmp && python -m mlir_utils._configuration -y torch_mlir && popd
4444
else
45-
configure-mlir-utils -y torch_mlir
45+
configure-mlir-python-utils -y torch_mlir
4646
fi
4747
4848
- name: Test

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# mlir-utils
1+
# mlir-python-utils
22

33
The missing pieces (as far as boilerplate reduction goes) of the upstream MLIR python bindings.
44

@@ -8,15 +8,16 @@ The missing pieces (as far as boilerplate reduction goes) of the upstream MLIR p
88

99
```shell
1010
$ pip install .[mlir] -f https://github.com/makslevental/mlir-wheels/releases/expanded_assets/latest
11-
$ configure-mlir-utils mlir
11+
$ configure-mlir-python-utils mlir
12+
```
1213

1314
or for maximum convenience
1415

1516
```shell
1617
$ pip install mlir-python-utils[mlir] \
1718
-f https://github.com/makslevental/mlir-wheels/releases/expanded_assets/latest
18-
-f https://github.com/makslevental/mlir-wheels/releases/expanded_assets/latest
19-
$ configure-mlir-utils mlir
19+
-f https://github.com/makslevental/mlir-python-utils/releases/expanded_assets/latest
20+
$ configure-mlir-python-utils mlir
2021
```
2122

2223
### Details
@@ -25,9 +26,9 @@ This package is meant to work in concert with the upstream bindings.
2526
Practically speaking that means you need to have *some* package installed that includes mlir python bindings.
2627
In addition, you have to do one of two things to **configure this package** (after installing it):
2728

28-
1. `$ configure-mlir-utils -y <MLIR_PYTHON_PACKAGE_PREFIX>`, where `MLIR_PYTHON_PACKAGE_PREFIX` is (as it says) the
29+
1. `$ configure-mlir-python-utils -y <MLIR_PYTHON_PACKAGE_PREFIX>`, where `MLIR_PYTHON_PACKAGE_PREFIX` is (as it says) the
2930
package prefix for your chosen upstream bindings. So for example, for `torch-mlir`, you would
30-
execute `configure-mlir-utils torch_mlir`, since `torch-mlir`'s bindings are the root of the `torch-mlir` python
31+
execute `configure-mlir-python-utils torch_mlir`, since `torch-mlir`'s bindings are the root of the `torch-mlir` python
3132
package. **When in doubt about this prefix**, it is everything up until `ir` (e.g., as
3233
in `from torch_mlir import ir`).
3334
2. `$ export MLIR_PYTHON_PACKAGE_PREFIX=<MLIR_PYTHON_PACKAGE_PREFIX>`, i.e., you can set this string as an environment

mlir_utils/_configuration/configuration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,19 @@ def alias_upstream_bindings():
5858
)
5959
return True
6060
elif not (
61-
sys.argv[0].endswith("configure-mlir-utils")
61+
sys.argv[0].endswith("configure-mlir-python-utils")
6262
or ("-m" in sys.orig_argv and __package__ in sys.orig_argv)
6363
):
6464
raise Exception(
65-
"mlir-utils not configured and MLIR_PYTHON_PACKAGE_PREFIX env variable not set"
65+
"mlir-python-utils not configured and MLIR_PYTHON_PACKAGE_PREFIX env variable not set"
6666
)
6767
return False
6868

6969

7070
def configure_host_bindings():
7171
parser = argparse.ArgumentParser(
72-
prog="configure-mlir-utils",
73-
description="Configure mlir-utils",
72+
prog="configure-mlir-python-utils",
73+
description="Configure mlir-python-utils",
7474
)
7575
parser.add_argument("-y", "--yes", action="store_true", default=False)
7676
parser.add_argument("mlir_python_package_prefix")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mlir-test = ["pytest", "mlir-python-bindings", "mlir-native-tools"]
1616
mlir = ["mlir-python-bindings"]
1717

1818
[project.scripts]
19-
configure-mlir-utils = "mlir_utils:_configuration.configuration.configure_host_bindings"
19+
configure-mlir-python-utils = "mlir_utils:_configuration.configuration.configure_host_bindings"
2020
generate-trampolines = "mlir_utils:_configuration.generate_trampolines.generate_trampolines"
2121

2222
[build-system]

0 commit comments

Comments
 (0)