File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1111from conda .base .context import context
1212from conda .exceptions import CondaHTTPError
1313from conda .utils import url_path
14- from conda_index .index import update_index as _update_index
1514
1615from . import utils
1716from .utils import (
2120if TYPE_CHECKING :
2221 from conda .models .channels import Channel
2322
23+ try :
24+ from conda_index .index import update_index as _update_index
25+ except ImportError :
26+ raise ImportError (
27+ "conda-build requires conda-index to be installed. Please install conda-index using conda."
28+ )
29+
30+
2431try :
2532 from conda .core .index import Index
2633except ImportError :
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ dependencies = [
2525 " beautifulsoup4" ,
2626 " chardet" ,
2727 " conda >=23.7.0" ,
28- " conda-index >=0.4.0" ,
28+ # Disabled due to conda-index not being available on PyPI
29+ # "conda-index >=0.4.0",
2930 " conda-package-handling >=2.2.0" ,
3031 " filelock" ,
3132 " frozendict >=2.4.2" ,
You can’t perform that action at this time.
0 commit comments