[695] | 1 | #! /usr/bin/env python |
---|
| 2 | # |
---|
| 3 | # PyKota |
---|
| 4 | # |
---|
| 5 | # PyKota : Print Quotas for CUPS |
---|
| 6 | # |
---|
| 7 | # (c) 2003 Jerome Alet <alet@librelogiciel.com> |
---|
| 8 | # You're welcome to redistribute this software under the |
---|
| 9 | # terms of the GNU General Public Licence version 2.0 |
---|
| 10 | # or, at your option, any higher version. |
---|
| 11 | # |
---|
| 12 | # You can read the complete GNU GPL in the file COPYING |
---|
| 13 | # which should come along with this software, or visit |
---|
| 14 | # the Free Software Foundation's WEB site http://www.fsf.org |
---|
| 15 | # |
---|
| 16 | # $Id$ |
---|
| 17 | # |
---|
| 18 | # $Log$ |
---|
| 19 | # Revision 1.1 2003/02/05 21:28:17 jalet |
---|
| 20 | # Initial import into CVS |
---|
| 21 | # |
---|
| 22 | # |
---|
| 23 | # |
---|
| 24 | |
---|
| 25 | import sys |
---|
| 26 | import glob |
---|
| 27 | import os |
---|
| 28 | from distutils.core import setup |
---|
| 29 | |
---|
| 30 | sys.path.insert(0, "pykota") |
---|
| 31 | from pykota.version import __version__, __doc__ |
---|
| 32 | |
---|
| 33 | data_files = [] |
---|
| 34 | mofiles = glob.glob(os.sep.join(["po", "*", "*.mo"])) |
---|
| 35 | for mofile in mofiles : |
---|
| 36 | lang = mofile.split(os.sep)[1] |
---|
| 37 | directory = os.sep.join(["share", "locale", lang, "LC_MESSAGES"]) |
---|
| 38 | data_files.append((directory, [ mofile ])) |
---|
| 39 | |
---|
| 40 | setup(name = "pykota", version = __version__, |
---|
| 41 | license = "GNU GPL", |
---|
| 42 | description = __doc__, |
---|
| 43 | author = "Jerome Alet", |
---|
| 44 | author_email = "alet@librelogiciel.com", |
---|
| 45 | url = "http://www.librelogiciel.com/software/", |
---|
| 46 | packages = [ "pykota", "pykota.storages", "pykota.requesters", "pykota.loggers" ], |
---|
| 47 | scripts = [ "bin/pykota", "bin/edpykota", "bin/repykota", "bin/warnpykota" ], |
---|
| 48 | data_files = data_files) |
---|