From 6eb922c747b27724874d252f5783a33c1f4eb282 Mon Sep 17 00:00:00 2001 From: Chris Novakovic Date: Tue, 28 Jul 2026 10:17:13 +0100 Subject: [PATCH] `python_wheel`: allow packages to have metadata-only outputs Some packages on PyPI (e.g. typer-slim) exist solely as a means of introducing dependencies on other packages, and therefore consist only of metadata. Permit the use of these packages by allowing `outs` to be an empty list. Fixes #315. --- build_defs/python.build_defs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_defs/python.build_defs b/build_defs/python.build_defs index b884bab..2435ac2 100644 --- a/build_defs/python.build_defs +++ b/build_defs/python.build_defs @@ -602,7 +602,7 @@ def python_wheel(name:str, version:str, labels:list=[], hashes:list=None, packag """ binary = binary or entry_points package_name = package_name or name.replace('-', '_') - if not outs: + if outs is None: outs = [name] if CONFIG.PYTHON.WHEEL_DIST_INFO: outs += [f"{package_name}-{version}.dist-info"]