File tree Expand file tree Collapse file tree 3 files changed +12
-21
lines changed Expand file tree Collapse file tree 3 files changed +12
-21
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ function(resolve_buck2)
194
194
else ()
195
195
# Wrong buck version used. Stop here to ensure that the user sees
196
196
# the error.
197
+ message (WARNING ${resolve_buck2_error} )
197
198
message (FATAL_ERROR "Failed to resolve buck2." )
198
- message (FATAL_ERROR ${resolve_buck2_error} )
199
199
endif ()
200
- endfunction ()
200
+ endfunction ()
Original file line number Diff line number Diff line change 5
5
# This source code is licensed under the BSD-style license found in the
6
6
# LICENSE file in the root directory of this source tree.
7
7
8
- # Install required python dependencies for developing
9
- # Dependencies are defined in .pyproject.toml
10
- if [[ -z $BUCK ]];
11
- then
12
- BUCK=buck2
13
- fi
14
-
15
- if [[ -z $PYTHON_EXECUTABLE ]];
16
- then
17
- PYTHON_EXECUTABLE=python3
18
- fi
19
-
20
8
# Parse options.
21
9
EXECUTORCH_BUILD_PYBIND=OFF
22
10
CMAKE_ARGS=" "
@@ -41,6 +29,7 @@ for arg in "$@"; do
41
29
esac
42
30
done
43
31
32
+
44
33
# Install pytorch dependencies
45
34
#
46
35
# Note:
@@ -69,11 +58,15 @@ pip install --force-reinstall --pre transformers==${TRANSFORMERS_VERSION}
69
58
TORCHSR_VERSION=1.0.4
70
59
pip install --pre torchsr==${TORCHSR_VERSION}
71
60
72
- # Install ExecuTorch after dependencies are installed.
61
+
62
+ #
63
+ # Install executorch pip package. This also makes `flatc` available on the path.
64
+ #
65
+
66
+ # Deps needed by pip install and cmake.
67
+ # TODO(dbort): Remove tomli once min python version is 3.11.
68
+ pip install zstd tomli setuptools wheel
69
+
73
70
EXECUTORCH_BUILD_PYBIND=" $EXECUTORCH_BUILD_PYBIND " \
74
71
CMAKE_ARGS=" $CMAKE_ARGS " \
75
- CMAKE_BUILD_PARALLEL_LEVEL=9 \
76
72
pip install . --no-build-isolation -v
77
-
78
- # Install flatc dependency
79
- bash build/install_flatc.sh
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ dependencies=[
20
20
" ruamel.yaml" ,
21
21
" sympy" ,
22
22
" tabulate" ,
23
- " tomli" ,
24
- " zstd" ,
25
23
]
26
24
27
25
# Tell setuptools to generate commandline wrappers for tools that we install
You can’t perform that action at this time.
0 commit comments