5621: improve comment and docstring

svn: r19052
This commit is contained in:
Jérôme Rapinat 2012-03-13 08:48:05 +00:00
parent 1c89635532
commit 44667f7f13

View File

@ -20,6 +20,7 @@ from distutils.cmd import Command
from distutils.core import setup from distutils.core import setup
from distutils.command.build import build from distutils.command.build import build
from distutils.command.install_data import install_data from distutils.command.install_data import install_data
import distutils.command.clean
import sys import sys
import glob import glob
import os.path import os.path
@ -311,11 +312,13 @@ def glade():
class ExtractMessages(Command): class ExtractMessages(Command):
''' '''
Custom extraction for gramps' files Command to extract messages for translations
''' '''
# message_extractors = po/POTFILES.in # message_extractors = po/POTFILES.in
description = "extraction for gramps"
user_options = [('fake', None, 'Override')] user_options = [('fake', None, 'Override')]
def initialize_options(self): def initialize_options(self):
@ -366,7 +369,9 @@ class ExtractMessages(Command):
''' */*.in.h */*/*.in.h */*/*/*.in.h''') ''' */*.in.h */*/*.in.h */*/*/*.in.h''')
def finalize_options (self): def finalize_options (self):
# TODO: clean all files into /src which are ending with .h extension
pass pass
def trans_files(): def trans_files():
@ -464,6 +469,9 @@ class Install(Command):
pass pass
class Uninstall(Command): class Uninstall(Command):
'''
Custom command for uninstalling
'''
description = "Attempt an uninstall from an install log file" description = "Attempt an uninstall from an install log file"
@ -547,7 +555,7 @@ result = setup(
cmdclass = { cmdclass = {
'build': BuildData, 'build': BuildData,
'install': InstallData, # override Install! 'install': InstallData, # override Install!
#'install_data': InstallData, #'install_data': InstallData, # python setup.py --help-commands
'uninstall': Uninstall, 'uninstall': Uninstall,
'extract_messages': ExtractMessages} 'extract_messages': ExtractMessages}
) )