This repository was archived by the owner on Sep 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +26
-37
lines changed Expand file tree Collapse file tree 4 files changed +26
-37
lines changed Original file line number Diff line number Diff line change 11channels :
22 - defaults
3- - conda-forge
43dependencies :
54 - flake8>=3.7.9
65 - codecov
76 - pip
8- - nltk
9- - requests
10- - pytest
11- - pytest-cov
12- - sacremoses
13- - spacy>=3.0
14- - sphinx
15- - tqdm
16- - certifi
17- - future
18- - expecttest
197 - pip :
8+ - dataclasses
9+ - nltk
10+ - requests
2011 - revtok
12+ - pytest
13+ - pytest-cov
2114 - pytest-pythonpath
15+ - sacremoses
16+ - spacy
17+ - sphinx
2218 - sphinx-rtd-theme
19+ - tqdm
20+ - expecttest
2321 - https://github.com/explosion/spacy-models/releases/download/de_core_news_sm-3.0.0/de_core_news_sm-3.0.0.tar.gz#egg=de_core_news_sm==3.0.0
2422 - https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz#egg=en_core_web_sm==3.0.0
Original file line number Diff line number Diff line change 11channels :
22 - defaults
3- - conda-forge
43dependencies :
54 - flake8>=3.7.9
65 - codecov
76 - pip
8- - nltk
9- - requests
10- - pytest
11- - pytest-cov
12- - sacremoses
13- - spacy>=3.0
14- - sphinx
15- - tqdm
16- - certifi
17- - future
18- - expecttest
197 - pip :
8+ - dataclasses
9+ - nltk
10+ - requests
2011 - revtok
12+ - pytest
13+ - pytest-cov
2114 - pytest-pythonpath
15+ - sacremoses
16+ - spacy
17+ - sphinx
2218 - sphinx-rtd-theme
19+ - tqdm
20+ - certifi
21+ - future
22+ - expecttest
2323 - https://github.com/explosion/spacy-models/releases/download/de_core_news_sm-3.0.0/de_core_news_sm-3.0.0.tar.gz#egg=de_core_news_sm==3.0.0
2424 - https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz#egg=en_core_web_sm==3.0.0
Original file line number Diff line number Diff line change @@ -197,10 +197,9 @@ setup_conda_pytorch_constraint() {
197197
198198# Translate CUDA_VERSION into CUDA_CUDATOOLKIT_CONSTRAINT
199199setup_conda_cudatoolkit_constraint () {
200- export CONDA_BUILD_VARIANT= " cuda "
200+ export CONDA_CPUONLY_FEATURE= " "
201201 if [[ " $( uname) " == Darwin ]]; then
202202 export CONDA_CUDATOOLKIT_CONSTRAINT=" "
203- export CONDA_BUILD_VARIANT=" cpu"
204203 else
205204 case " $CU_VERSION " in
206205 cu100)
@@ -211,7 +210,7 @@ setup_conda_cudatoolkit_constraint() {
211210 ;;
212211 cpu)
213212 export CONDA_CUDATOOLKIT_CONSTRAINT=" "
214- export CONDA_BUILD_VARIANT= " cpu "
213+ export CONDA_CPUONLY_FEATURE= " - cpuonly "
215214 ;;
216215 * )
217216 echo " Unrecognized CU_VERSION=$CU_VERSION "
Original file line number Diff line number Diff line change 1- {% set build_variant = environ.get('CONDA_BUILD_VARIANT', 'cpu') %}
21package :
32 name : torchtext
43 version : " {{ environ.get('BUILD_VERSION') }}"
@@ -15,23 +14,15 @@ requirements:
1514 host :
1615 - python
1716 - setuptools
17+ - cpuonly
1818 {{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT') }}
1919
2020 run :
2121 - python
2222 - requests
2323 - tqdm
24- - pytorch-mutex 1.0 {{ build_variant }} # [not osx ]
2524 {{ environ.get('CONDA_PYTORCH_CONSTRAINT') }}
2625
27- {% if build_variant == 'cpu' %}
28- run_constrained :
29- - cpuonly
30- {% elif not osx %}
31- run_constrained :
32- - cpuonly <0
33- {% endif %}
34-
3526build :
3627 string : py{{py}}
3728 script_env :
4839
4940 requires :
5041 - pytest
42+ - cpuonly
5143
5244about :
5345 home : https://github.com/pytorch/text
You can’t perform that action at this time.
0 commit comments