~ubuntu-branches/ubuntu/trusty/catfish/trusty

« back to all changes in this revision

Viewing changes to build.py

  • Committer: Bazaar Package Importer
  • Author(s): Python Applications Team, Marco Rodrigues, Sandro Tosi, Savvas Radević, Piotr Ożarowski
  • Date: 2009-01-13 19:04:56 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090113190456-fukbnmg09h28ptd0
Tags: 0.3.2-1
[ Marco Rodrigues ]
* New upstream version (0.3.1)
  + Closes LP: #316674
* Bump to Standards-Version 3.8.0.
  + Add README.source.

[ Sandro Tosi ]
* debian/watch
  - updated to reflect new upstream website
* debian/control
  - Homepage field updated
* debian/copyright
  - updated upstream location
* debian/control
  - switch Vcs-Browser field to viewsvn

[ Savvas Radević ]
* 10Fix_makefile.dpatch updated to follow upstream changes

[ Piotr Ożarowski ]
* New upstream version (0.3.2)
  + Closes: #511492
* Updated the copyright years in debian/copyright
* Updated catfish.svg link in debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
 
3
 
# Copyright (C) 2007 Christian Dywan <software at twotoasts dot de>
 
3
# Copyright (C) 2007-2008 Christian Dywan <christian at twotoasts dot de>
4
4
#
5
5
# This program is free software; you can redistribute it and/or
6
6
# modify it under the terms of the GNU General Public License
7
7
# as published by the Free Software Foundation; either version 2
8
8
# of the License, or (at your option) any later version.
9
9
#
10
 
# This program is distributed in the hope that it will be useful,
11
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
# GNU General Public License for more details.
14
 
#
15
 
# You should have received a copy of the GNU General Public License
16
 
# along with this program; if not, write to the Free Software
17
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
10
# See the file COPYING for the full license text.
18
11
 
19
12
import sys
20
13
 
23
16
    sys.exit(1)
24
17
 
25
18
if sys.argv[1] == 'check':
26
 
    print 'Checking module dependencies...',
 
19
    print 'Checking module dependencies...'
27
20
    try:
28
21
        import os, stat, time, gobject, md5
29
22
        import optparse, subprocess, fnmatch, pygtk
30
23
        pygtk.require('2.0')
31
24
        import gtk, gtk.glade
32
 
        import xdg.Mime #optional
33
 
        import dbus #optional
 
25
        import xdg.Mime # optional
 
26
        import dbus # optional
34
27
    except ImportError, msg:
35
28
        module = str(msg).split()[-1]
36
29
        if not module in ('xdg.Mime', 'dbus'):
37
 
            print 'Error: The required module %s is missing.' % module
 
30
            print '...Error: The required module %s is missing.' % module
38
31
            sys.exit(1)
39
32
        else:
40
33
            print 'Warning: The optional module %s is missing.' % module
41
34
    except AssertionError, msg:
42
 
        print 'Error: You need pyGtk 2.0.'
 
35
        print '...Error: You need pyGtk 2.0.'
43
36
        sys.exit(1)
44
 
    print 'OK'
 
37
    print '...OK'
45
38
elif sys.argv[1] == 'build':
46
39
    import py_compile
47
40
    py_compile.compile(sys.argv[2] + '.py')