mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-25 20:41:18 -05:00
setup.py: Deduplicate script list
This commit is contained in:
parent
6379a9d43a
commit
52271d2e6e
35
setup.py
35
setup.py
@ -152,6 +152,17 @@ for plugin in plugins:
|
|||||||
if files:
|
if files:
|
||||||
package_data.update({plugin_name: files})
|
package_data.update({plugin_name: files})
|
||||||
|
|
||||||
|
scripts = [
|
||||||
|
'',
|
||||||
|
'-test',
|
||||||
|
'-botchk',
|
||||||
|
'-wizard',
|
||||||
|
'-adduser',
|
||||||
|
'-reset-password',
|
||||||
|
'-plugin-doc',
|
||||||
|
'-plugin-create',
|
||||||
|
]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
# Metadata
|
# Metadata
|
||||||
name='limnoria',
|
name='limnoria',
|
||||||
@ -202,25 +213,11 @@ setup(
|
|||||||
|
|
||||||
package_data=package_data,
|
package_data=package_data,
|
||||||
|
|
||||||
scripts=['scripts/supybot',
|
scripts=['scripts/supybot%s' % name for name in scripts],
|
||||||
'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']),
|
|
||||||
],
|
|
||||||
|
|
||||||
)
|
data_files=(
|
||||||
|
[('share/man/man1', ['man/supybot%s.1' % name]) for name in scripts]
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user