@@ -72,14 +72,6 @@ def install_requirements(use_pytorch_nightly):
7272 )
7373 sys .exit (1 )
7474
75- # pip packages needed by exir.
76- TORCH_PACKAGE = [
77- # Setting use_pytorch_nightly to false to test the pinned PyTorch commit. Note
78- # that we don't need to set any version number there because they have already
79- # been installed on CI before this step, so pip won't reinstall them
80- "torch==2.8.0" if use_pytorch_nightly else "torch" ,
81- ]
82-
8375 # Install the requirements for core ExecuTorch package.
8476 # `--extra-index-url` tells pip to look for package
8577 # versions on the provided URL if they aren't available on the default URL.
@@ -91,7 +83,6 @@ def install_requirements(use_pytorch_nightly):
9183 "install" ,
9284 "-r" ,
9385 "requirements-dev.txt" ,
94- * TORCH_PACKAGE ,
9586 "--extra-index-url" ,
9687 TORCH_URL ,
9788 ],
@@ -130,25 +121,6 @@ def install_requirements(use_pytorch_nightly):
130121
131122
132123def install_optional_example_requirements (use_pytorch_nightly ):
133- print ("Installing torch domain libraries" )
134- DOMAIN_LIBRARIES = [
135- ("torchvision==0.23.0" if use_pytorch_nightly else "torchvision" ),
136- "torchaudio==2.8.0" if use_pytorch_nightly else "torchaudio" ,
137- ]
138- # Then install domain libraries
139- subprocess .run (
140- [
141- sys .executable ,
142- "-m" ,
143- "pip" ,
144- "install" ,
145- * DOMAIN_LIBRARIES ,
146- "--extra-index-url" ,
147- TORCH_URL ,
148- ],
149- check = True ,
150- )
151-
152124 print ("Installing packages in requirements-examples.txt" )
153125 subprocess .run (
154126 [
@@ -158,10 +130,6 @@ def install_optional_example_requirements(use_pytorch_nightly):
158130 "install" ,
159131 "-r" ,
160132 "requirements-examples.txt" ,
161- "--extra-index-url" ,
162- TORCH_URL ,
163- "--upgrade-strategy" ,
164- "only-if-needed" ,
165133 ],
166134 check = True ,
167135 )
0 commit comments