Automatically detect packages in /lib

Automate handling of internal packages.
This commit is contained in:
MattHag 2024-05-27 19:59:27 +02:00 committed by Peter F. Patel-Schneider
parent be83dac209
commit 104556e7a3
1 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@ import subprocess
from glob import glob as _glob from glob import glob as _glob
from os.path import dirname as _dirname from os.path import dirname as _dirname
from setuptools import find_packages
try: try:
from setuptools import setup from setuptools import setup
except ImportError: except ImportError:
@ -91,7 +93,7 @@ For instructions on installing Solaar see https://pwr-solaar.github.io/Solaar/in
"dev": ["ruff"], "dev": ["ruff"],
}, },
package_dir={"": "lib"}, 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()), data_files=list(_data_files()),
include_package_data=True, include_package_data=True,
scripts=_glob("bin/*"), scripts=_glob("bin/*"),