File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 27
27
28
28
# Parse options.
29
29
EXECUTORCH_BUILD_PYBIND=OFF
30
+ INSTALL_EXECUTORCH=1
30
31
CMAKE_ARGS=" "
31
32
32
33
for arg in " $@ " ; do
33
34
case $arg in
35
+ --deps-only)
36
+ INSTALL_EXECUTORCH=0
37
+ ;;
34
38
--pybind)
35
39
EXECUTORCH_BUILD_PYBIND=ON
36
40
;;
@@ -102,7 +106,10 @@ $PIP_EXECUTABLE install --extra-index-url "${TORCH_URL}" \
102
106
#
103
107
# Install executorch pip package. This also makes `flatc` available on the path.
104
108
#
105
-
106
- EXECUTORCH_BUILD_PYBIND=" ${EXECUTORCH_BUILD_PYBIND} " \
107
- CMAKE_ARGS=" ${CMAKE_ARGS} " \
108
- $PIP_EXECUTABLE install . --no-build-isolation -v
109
+ if (( INSTALL_EXECUTORCH )) ; then
110
+ EXECUTORCH_BUILD_PYBIND=" ${EXECUTORCH_BUILD_PYBIND} " \
111
+ CMAKE_ARGS=" ${CMAKE_ARGS} " \
112
+ $PIP_EXECUTABLE install . --no-build-isolation -v
113
+ else
114
+ echo " Not installing executorch because --deps-only is set"
115
+ fi
You can’t perform that action at this time.
0 commit comments