[gnome-python-desktop] setup.py: reorganize constants



commit 0f256294e657c72c764962d204cec7e0c92eb5cb
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Mon Nov 1 13:14:56 2010 +0100

    setup.py: reorganize constants

 setup.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/setup.py b/setup.py
index b1e384a..0b3cd3f 100644
--- a/setup.py
+++ b/setup.py
@@ -53,17 +53,17 @@ PYGTK_SUFFIX = '2.0'
 PYGTK_SUFFIX_LONG = 'gtk-' + PYGTK_SUFFIX
 PYGTK_DEFS_DIR = pkgc_get_defs_dir('pygtk-%s' % PYGTK_SUFFIX)
 
-MAJOR_VERSION = int(get_m4_define('gnome_python_desktop_major_version'))
-MINOR_VERSION = int(get_m4_define('gnome_python_desktop_minor_version'))
-MICRO_VERSION = int(get_m4_define('gnome_python_desktop_micro_version'))
-VERSION = '%d.%d.%d' % (MAJOR_VERSION, MINOR_VERSION, MICRO_VERSION)
-
 RSVG_REQUIRED      = get_m4_define('rsvg_required_version')
-PYCAIRO_REQUIRED   = '1.8.10'
+PYCAIRO_REQUIRED   = '1.8.10' # configure.ac does not define pycairo_required_version
 PYGTK_REQUIRED     = '%s.%s.%s' % (get_m4_define('pygtk_required_major_version'),
                                    get_m4_define('pygtk_required_minor_version'),
                                    get_m4_define('pygtk_required_micro_version'))
 
+MAJOR_VERSION = int(get_m4_define('gnome_python_desktop_major_version'))
+MINOR_VERSION = int(get_m4_define('gnome_python_desktop_minor_version'))
+MICRO_VERSION = int(get_m4_define('gnome_python_desktop_micro_version'))
+VERSION = '%d.%d.%d' % (MAJOR_VERSION, MINOR_VERSION, MICRO_VERSION)
+
 GLOBAL_INC += ['.']
 GLOBAL_MACROS += [('PYRSVG_MAJOR_VERSION', MAJOR_VERSION),
                   ('PYRSVG_MINOR_VERSION', MINOR_VERSION),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]