Skip to content

Commit 356d55e

Browse files
committed
Remove extra unnecessary host dependencies
Signed-off-by: Eli Uriegas <[email protected]>
1 parent 053603c commit 356d55e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packaging/pkg_helpers.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ setup_conda_cudatoolkit_constraint() {
317317
export CONDA_CUDATOOLKIT_CONSTRAINT="- cudatoolkit >=9.2,<9.3 # [not osx]"
318318
;;
319319
cpu)
320-
export CONDA_CUDATOOLKIT_CONSTRAINT=""
320+
export CONDA_CUDATOOLKIT_CONSTRAINT="- cpuonly"
321321
export CONDA_BUILD_VARIANT="cpu"
322322
;;
323323
*)

packaging/torchvision/meta.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ requirements:
1717
host:
1818
- python
1919
- setuptools
20-
{{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT') }}
20+
{{ environ.get('CONDA_PYTORCH_CONSTRAINT') }}
2121
{{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT') }}
22-
{{ environ.get('CONDA_CPUONLY_FEATURE') }}
2322

2423
run:
2524
- python

0 commit comments

Comments
 (0)