File: setup.py

package info (click to toggle)
foomatic-gui 0.7.7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 748 kB
  • ctags: 296
  • sloc: python: 2,150; makefile: 76; ansic: 52; sh: 14
file content (44 lines) | stat: -rwxr-xr-x 1,917 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python
#
#     foomatic-gui - GNOME2 interface to the foomatic printing system
#     Copyright (C) 2002-05 Chris Lawrence <lawrencc@debian.org>
#
#     This program is free software; you can redistribute it and/or modify
#     it under the terms of the GNU General Public License as published by
#     the Free Software Foundation; either version 2 of the License, or
#     (at your option) any later version.
#
#     This program is distributed in the hope that it will be useful,
#     but WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#     GNU General Public License for more details.
#
#     You should have received a copy of the GNU General Public License
#     along with this program; if not, write to the Free Software
#     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# $Id: setup.py,v 1.8 2005/03/04 04:45:44 lordsutch Exp $

from distutils.core import setup
import foomatic
import os
import glob

i18n = []
for lang in glob.glob('*.po'):
    lang = lang[:-3]
    if lang == 'messages':
        continue
    i18n.append( ('share/locale/%s/LC_MESSAGES' % lang,
                  ['i18n/%s/LC_MESSAGES/foomatic-gui.mo' % lang]) )

setup(name='foomatic-gui', version=foomatic.__version__,
      description='Python and GNOME interface to the Foomatic printing system',
      author='Chris Lawrence', author_email='chris@lordsutch.com',
      url='http://blog.lordsutch.com/?topic=13',
      data_files=i18n+[('share/foomatic-gui',
                        ['foomatic-gui.glade', 'testpage.ps']),
                       ('share/applications', ['foomatic-gui.desktop']),
                       ('share/pixmaps', ['foomatic-gui-logo.png'])],
      license='GPL v2', packages=['foomatic'], scripts=['foomatic-gui',
                                                        'printconf'])