这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion conda/core/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def _supplement_index_with_system(index):
index[rec] = rec

dist_name, dist_version = context.os_distribution_name_version
if context.subdir.startswith("osx-"):
is_osx = context.subdir.startswith("osx-")
if is_osx:
# User will have to set env variable when using CONDA_SUBDIR var
dist_version = os.environ.get('CONDA_OVERRIDE_OSX', dist_version)
if dist_version:
Expand All @@ -179,6 +180,13 @@ def _supplement_index_with_system(index):
rec = _make_virtual_package('__' + libc_family, libc_version)
index[rec] = rec

if is_linux or is_osx:
rec = _make_virtual_package('__unix')
index[rec] = rec
elif context.subdir.startswith('win-'):
rec = _make_virtual_package('__win')
index[rec] = rec

archspec_name = get_archspec_name()
archspec_name = os.getenv("CONDA_OVERRIDE_ARCHSPEC", archspec_name)
if archspec_name:
Expand Down