From 52271d2e6eb403e5d7c229a38ac4e39aa5e6a31e Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 17 Jun 2022 09:07:43 +0200 Subject: [PATCH] setup.py: Deduplicate script list --- setup.py | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/setup.py b/setup.py index a84c6df25..1d6def55d 100644 --- a/setup.py +++ b/setup.py @@ -152,6 +152,17 @@ for plugin in plugins: if files: package_data.update({plugin_name: files}) +scripts = [ + '', + '-test', + '-botchk', + '-wizard', + '-adduser', + '-reset-password', + '-plugin-doc', + '-plugin-create', +] + setup( # Metadata name='limnoria', @@ -202,25 +213,11 @@ setup( package_data=package_data, - scripts=['scripts/supybot', - 'scripts/supybot-test', - 'scripts/supybot-botchk', - 'scripts/supybot-wizard', - 'scripts/supybot-adduser', - 'scripts/supybot-reset-password', - 'scripts/supybot-plugin-doc', - 'scripts/supybot-plugin-create', - ], - data_files=[('share/man/man1', ['man/supybot.1']), - ('share/man/man1', ['man/supybot-test.1']), - ('share/man/man1', ['man/supybot-botchk.1']), - ('share/man/man1', ['man/supybot-wizard.1']), - ('share/man/man1', ['man/supybot-adduser.1']), - ('share/man/man1', ['man/supybot-reset-password.1']), - ('share/man/man1', ['man/supybot-plugin-doc.1']), - ('share/man/man1', ['man/supybot-plugin-create.1']), - ], + scripts=['scripts/supybot%s' % name for name in scripts], - ) + data_files=( + [('share/man/man1', ['man/supybot%s.1' % name]) for name in scripts] + ), +) # vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79: