2008-10-27 02:35:19 +05:30
|
|
|
#
|
|
|
|
# Gramps - a GTK+/GNOME based genealogy program
|
|
|
|
#
|
2008-10-28 09:34:15 +05:30
|
|
|
# Copyright (C) 2008 Steve Hall
|
2008-10-27 02:35:19 +05:30
|
|
|
# Copyright (C) 2008 Stephen George
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
2008-10-31 17:35:45 +05:30
|
|
|
# $Id$
|
2006-07-27 06:34:49 +05:30
|
|
|
import sys
|
|
|
|
|
|
|
|
fn = sys.argv[1]
|
|
|
|
f = open(fn,"w")
|
|
|
|
|
|
|
|
f.write('[tests]\n')
|
|
|
|
|
|
|
|
try:
|
|
|
|
import gtk
|
|
|
|
f.write('gtk=yes\n')
|
|
|
|
f.write('gtkver=%d.%d.%d\n' % gtk.gtk_version)
|
|
|
|
f.write('pygtk=yes\n')
|
|
|
|
f.write('pygtkver=%d.%d.%d\n' % gtk.pygtk_version)
|
|
|
|
except ImportError:
|
|
|
|
f.write('gtk=no\n')
|
|
|
|
f.write('gtkver=no\n')
|
|
|
|
f.write('pygtk=no\n')
|
|
|
|
f.write('pygtkver=no\n')
|
|
|
|
|
|
|
|
try:
|
|
|
|
import cairo
|
|
|
|
f.write('pycairo=yes\n')
|
2008-10-27 02:35:19 +05:30
|
|
|
#f.write('pycairover=%s\n' % cairo.version_info)
|
|
|
|
f.write('pycairover=%s\n' % str(cairo.version_info) )
|
2006-07-27 06:34:49 +05:30
|
|
|
except ImportError:
|
|
|
|
f.write('pycairo=no\n')
|
|
|
|
f.write('pycairover=no\n')
|
|
|
|
f.close()
|
2008-10-27 02:35:19 +05:30
|
|
|
|