testing/tests/l10n/setup.py
author Boris Zbarsky <bzbarsky@mit.edu>
Thu, 15 Jul 2010 13:49:28 -0400
changeset 47703 5d3c3d5c71bc03965fd60fb8cf6d94548883972f
parent 1 9b2a99adc05e53cd4010de512f50118594756650
permissions -rw-r--r--
Backing out rev b567a93a5086 (bug 558306) to fix test orange

from distutils.core import setup

from distutils.cmd import Command
import glob

class web(Command):
  description = 'install web files'
  user_options = [('target=','d','base directory for installation')]
  
  def initialize_options(self):
    self.target = None
    pass
  def finalize_options(self):
    pass
  def run(self):
    self.ensure_dirname('target')
    for f in glob.glob('web/*.*'):
      if f.find('/CVS') >=0 or f.find('~') >= 0:
        continue
      self.copy_file(f, self.target)

setup(name="l10n-tools",
      version="0.2",
      author="Axel Hecht",
      author_email="l10n@mozilla.com",
      scripts=['scripts/compare-locales', 'scripts/verify-search',
               'scripts/test-locales',
               'scripts/verify-rss-redirects'],
      package_dir={'': 'lib'},
      packages=['Mozilla'],
      cmdclass={'web': web}
      )