Skip to content

Commit 73c646d

Browse files
authored
update quickstart UI to remove conda (#6585)
for issue pytorch/pytorch.github.io#1993
1 parent 08eaf84 commit 73c646d

File tree

2 files changed

+1
-52
lines changed

2 files changed

+1
-52
lines changed

tools/scripts/generate_binary_build_matrix.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
CUDA_AARCH64_ARCHES = ["12.8-aarch64"]
5454

55-
PACKAGE_TYPES = ["wheel", "conda", "libtorch"]
55+
PACKAGE_TYPES = ["wheel", "libtorch"]
5656
CXX11_ABI = "cxx11-abi"
5757
RELEASE = "release"
5858
DEBUG = "debug"
@@ -304,23 +304,6 @@ def get_wheel_install_command(
304304
return f"{whl_install_command} --index-url {get_base_download_url_for_repo('whl', channel, gpu_arch_type, desired_cuda)}" # noqa: E501
305305

306306

307-
def generate_conda_matrix(
308-
os: str,
309-
channel: str,
310-
with_cuda: str,
311-
with_rocm: str,
312-
with_cpu: str,
313-
with_xpu: str,
314-
limit_pr_builds: bool,
315-
use_only_dl_pytorch_org: bool,
316-
use_split_build: bool = False,
317-
python_versions: Optional[List[str]] = None,
318-
) -> List[Dict[str, str]]:
319-
ret: List[Dict[str, str]] = []
320-
# return empty list. Conda builds are deprecated, see https://github.com/pytorch/pytorch/issues/138506
321-
return ret
322-
323-
324307
def generate_libtorch_matrix(
325308
os: str,
326309
channel: str,
@@ -522,7 +505,6 @@ def generate_wheels_matrix(
522505

523506
GENERATING_FUNCTIONS_BY_PACKAGE_TYPE: Dict[str, Callable[..., List[Dict[str, str]]]] = {
524507
"wheel": generate_wheels_matrix,
525-
"conda": generate_conda_matrix,
526508
"libtorch": generate_libtorch_matrix,
527509
}
528510

tools/tests/test_generate_binary_build_matrix.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,6 @@ def test_linux_wheel_cuda(self):
6060
reference_output_file="build_matrix_linux_wheel_cuda.json",
6161
)
6262

63-
def test_linux_conda_cuda(self):
64-
self.matrix_compare_helper(
65-
package_type="conda",
66-
operating_system="linux",
67-
cuda=True,
68-
rocm=True,
69-
cpu=True,
70-
xpu=False,
71-
reference_output_file="build_matrix_linux_conda_cuda.json",
72-
)
73-
7463
def test_macos_wheel(self):
7564
self.matrix_compare_helper(
7665
package_type="wheel",
@@ -82,17 +71,6 @@ def test_macos_wheel(self):
8271
reference_output_file="build_matrix_macos_wheel.json",
8372
)
8473

85-
def test_macos_conda(self):
86-
self.matrix_compare_helper(
87-
package_type="conda",
88-
operating_system="macos",
89-
cuda=False,
90-
rocm=False,
91-
cpu=True,
92-
xpu=False,
93-
reference_output_file="build_matrix_macos_conda.json",
94-
)
95-
9674
def test_windows_wheel_cuda(self):
9775
self.matrix_compare_helper(
9876
package_type="wheel",
@@ -104,17 +82,6 @@ def test_windows_wheel_cuda(self):
10482
reference_output_file="build_matrix_windows_wheel_cuda.json",
10583
)
10684

107-
def test_windows_conda_cuda(self):
108-
self.matrix_compare_helper(
109-
package_type="conda",
110-
operating_system="windows",
111-
cuda=True,
112-
rocm=True,
113-
cpu=True,
114-
xpu=True,
115-
reference_output_file="build_matrix_windows_conda_cuda.json",
116-
)
117-
11885
def test_windows_wheel_xpu(self):
11986
self.matrix_compare_helper(
12087
package_type="wheel",

0 commit comments

Comments
 (0)