Skip to content

Commit 13f1309

Browse files
committed
Fix monobase exclusion
1 parent 5543c5e commit 13f1309

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/monobase/user.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,12 @@ def build_user_venv(args: argparse.Namespace) -> None:
166166
with open(user_req_path, 'w') as f:
167167
for k, uvs in sorted(user_versions.items()):
168168
mvs = mono_versions.get(k)
169-
# Only warn exclusions if base and user layers have different versions
170-
if mvs is not None and mvs != uvs:
171-
log.warning(f'excluding {k} from user venv: mono=={mvs}, user=={uvs}')
169+
if mvs is not None:
170+
# Only warn exclusions if base and user layers have different versions
171+
if mvs != uvs:
172+
log.warning(
173+
f'excluding {k} from user venv: mono=={mvs}, user=={uvs}'
174+
)
172175
continue
173176
if k == uvs and type(uvs) is str and os.path.exists(uvs):
174177
# Local path, always include, even if it might conflict with monobase, e.g. ./torch-2.6.0.dev*.whl

0 commit comments

Comments
 (0)