File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,12 @@ def setup_cuda():
80
80
def setup_conda_pytorch_constraint () -> List [str ]:
81
81
pytorch_constraint = f"- pytorch=={ PYTORCH_VERSION } "
82
82
os .environ ["CONDA_PYTORCH_CONSTRAINT" ] = pytorch_constraint
83
+ if pytorch_major_minor < (2 , 2 ):
84
+ os .environ ["CONDA_PYTORCH_MKL_CONSTRAINT" ] = "- mkl!=2024.1.0"
85
+ os .environ ["SETUPTOOLS_CONSTRAINT" ] = "- setuptools<70"
86
+ else :
87
+ os .environ ["CONDA_PYTORCH_MKL_CONSTRAINT" ] = ""
88
+ os .environ ["SETUPTOOLS_CONSTRAINT" ] = "- setuptools"
83
89
os .environ ["CONDA_PYTORCH_BUILD_CONSTRAINT" ] = pytorch_constraint
84
90
os .environ ["PYTORCH_VERSION_NODOT" ] = PYTORCH_VERSION .replace ("." , "" )
85
91
Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ requirements:
12
12
13
13
host :
14
14
- python
15
- - setuptools
15
+ {{ environ.get('SETUPTOOLS_CONSTRAINT') }}
16
16
{{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT') }}
17
+ {{ environ.get('CONDA_PYTORCH_MKL_CONSTRAINT') }}
17
18
{{ environ.get('CONDA_CUDATOOLKIT_CONSTRAINT') }}
18
19
{{ environ.get('CONDA_CPUONLY_FEATURE') }}
19
20
You can’t perform that action at this time.
0 commit comments