From c867490aa781783ece914c5908269187168072c4 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Thu, 14 Mar 2024 12:10:25 +0100 Subject: [PATCH] Disable auto-discovery for setuptools Since setuptools release (61.0.0) ansible-role-lunasa-hsm's package build command (python3 setup.py sdist bdist_wheel) is finding 'defaults' directory as a python module and including it in the built package. That's not correct as defaults is just providing data files properly managed as data_files and there is no actual python module, setup.py is just used as build/install tooling. Change-Id: I759d63ede6b9d5ebedf3ccc7dcb808055a0d009a --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6a931a6..d2f0760 100644 --- a/setup.py +++ b/setup.py @@ -16,4 +16,5 @@ import setuptools setuptools.setup( setup_requires=['pbr'], - pbr=True) + pbr=True, + py_modules=[])