From 104556e7a39384466e467fd7196c6ec4f8bb544d Mon Sep 17 00:00:00 2001 From: MattHag <16444067+MattHag@users.noreply.github.com> Date: Mon, 27 May 2024 19:59:27 +0200 Subject: [PATCH] Automatically detect packages in /lib Automate handling of internal packages. --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 882d599e..7259614c 100755 --- a/setup.py +++ b/setup.py @@ -4,6 +4,8 @@ import subprocess from glob import glob as _glob from os.path import dirname as _dirname +from setuptools import find_packages + try: from setuptools import setup except ImportError: @@ -91,7 +93,7 @@ For instructions on installing Solaar see https://pwr-solaar.github.io/Solaar/in "dev": ["ruff"], }, package_dir={"": "lib"}, - packages=["keysyms", "hidapi", "hid_parser", "logitech_receiver", "solaar", "solaar.ui", "solaar.cli"], + packages=find_packages(where="lib"), data_files=list(_data_files()), include_package_data=True, scripts=_glob("bin/*"),