setup.py: Build plugin list automatically

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
James Vega 2009-03-16 17:34:35 -04:00
parent c81cd48fa6
commit 013167bba7

View File

@ -29,63 +29,6 @@
# POSSIBILITY OF SUCH DAMAGE.
###
plugins = [
'Admin',
'Alias',
'Anonymous',
'AutoMode',
'BadWords',
'Channel',
'ChannelLogger',
'ChannelStats',
'Config',
'Ctcp',
'Dict',
'Factoids',
'Filter',
'Format',
'Games',
'Google',
'Herald',
'Insult',
'Internet',
'Karma',
'Lart',
'Later',
'Limiter',
'Math',
'Misc',
'MoobotFactoids',
'Network',
'News',
'NickCapture',
'Nickometer',
'Note',
'Owner',
'Plugin',
'Praise',
'Protector',
'Quote',
'QuoteGrabs',
'Relay',
'Reply',
'RSS',
'Scheduler',
'Seen',
'Services',
'ShrinkUrl',
'Status',
'String',
'Time',
'Todo',
'Topic',
'Unix',
'URL',
'User',
'Utilities',
'Web',
]
import sys
if sys.version_info < (2, 3, 0):
@ -103,6 +46,9 @@ import glob
import shutil
import os.path
plugins = [s for s in os.listdir('plugins') if
os.path.exists(os.path.join('plugins', s, 'plugin.py'))]
def normalizeWhitespace(s):
return ' '.join(s.split())