Lines Matching +full:pip +full:- +full:requirements +full:- +full:file
4 # This source code is licensed under the BSD-style license found in the
5 # LICENSE file in the root directory of this source tree.
23 with open("pyproject.toml", "r") as file:
24 for line in file:
25 if line.startswith("requires-python"):
34 file=sys.stderr,
43 [sys.executable, "-m", "pip", "install", "packaging"], check=True
57 file=sys.stderr,
61 print(f"WARNING: Skipping python version check: {e}", file=sys.stderr)
75 if arg == "--pybind":
80 CMAKE_ARGS += f" -DEXECUTORCH_BUILD_{arg_upper}=ON"
82 print(f"Error: {arg} must follow --pybind")
84 elif arg == "--clean":
86 print("Cleaning pip-out/...")
87 shutil.rmtree("pip-out/", ignore_errors=True)
88 dirs = glob.glob("cmake-out*/")
94 elif arg == "--use-pt-pinned-commit":
104 # ClangCL is an alias to Clang that configures it to work in an MSVC-compatible
107 CMAKE_ARGS += " -T ClangCL"
109 # Since ExecuTorch often uses main-branch features of pytorch, only the nightly
110 # pip versions will have the required features.
112 # NOTE: If a newly-fetched version of the executorch repo changes the value of
113 # NIGHTLY_VERSION, you should re-run this script to install the necessary
117 # The pip repository that hosts nightly torch packages.
120 # pip packages needed by exir.
124 # been installed on CI before this step, so pip won't reinstall them
131 "typing-extensions",
134 # pip packages needed to run examples.
135 # TODO: Make each example publish its own requirements.txt
143 # pip packages needed for development.
146 "pip>=23", # For building the pip package.
148 "setuptools>=63", # For building the pip package.
150 "wheel", # For building the pip package archive.
154 # Assemble the list of requirements to actually install.
155 # TODO: Add options for reducing the number of requirements.
158 # Install the requirements. `--extra-index-url` tells pip to look for package
163 "-m",
164 "pip",
167 "--extra-index-url",
174 # Install executorch pip package. This also makes `flatc` available on the path.
175 # The --extra-index-url may be necessary if pyproject.toml has a dependency on a
176 # pre-release or nightly version of a torch package.
184 # Run the pip install command
188 "-m",
189 "pip",
192 "--no-build-isolation",
193 "-v",
194 "--extra-index-url",