Skip to content

Commit ea2029d

Browse files
authored
Update pybinding README (#9770)
### Summary After #9583 and #9611, we don't rely on environment variables to turn on pybindings. ### Test plan Read + run example commands.
1 parent 8ca1507 commit ea2029d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

extension/pybindings/README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
This Python module, named `portable_lib`, provides a set of functions and classes for loading and executing bundled programs. To install it, run the fullowing command:
33

44
```bash
5-
EXECUTORCH_BUILD_PYBIND=ON \
6-
pip install . --no-build-isolation
5+
CMAKE_ARGS="-DEXECUTORCH_BUILD_XNNPACK=ON" pip install . --no-build-isolation
76
```
87

98
Or when installing the rest of dependencies:
@@ -17,15 +16,14 @@ install_executorch.sh --pybind
1716
You can link the runtime against some backends to make sure a delegated or partitioned model can still run by Python module successfully:
1817

1918
```bash
20-
EXECUTORCH_BUILD_PYBIND=ON \
21-
CMAKE_ARGS="-DEXECUTORCH_BUILD_COREML=ON -DEXECUTORCH_BUILD_MPS=ON -DEXECUTORCH_BUILD_XNNPACK=ON" \
22-
pip install . --no-build-isolation
19+
CMAKE_ARGS="-DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_COREML=ON -DEXECUTORCH_BUILD_MPS=ON" \
20+
pip install . --no-build-isolation
2321
```
2422

2523
Similarly, when installing the rest of dependencies:
2624

2725
```bash
28-
install_executorch.sh --pybind coreml mps xnnpack
26+
install_executorch.sh --pybind xnnpack coreml mps
2927
```
3028

3129
## Functions

0 commit comments

Comments
 (0)