[GRASS-SVN] r49155 - grass/branches/develbranch_6/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 9 10:47:39 EST 2011


Author: martinl
Date: 2011-11-09 07:47:39 -0800 (Wed, 09 Nov 2011)
New Revision: 49155

Removed:
   grass/branches/develbranch_6/gui/wxpython/build_ext.py
Log:
wxGUI: remove unused file


Deleted: grass/branches/develbranch_6/gui/wxpython/build_ext.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/build_ext.py	2011-11-09 15:41:41 UTC (rev 49154)
+++ grass/branches/develbranch_6/gui/wxpython/build_ext.py	2011-11-09 15:47:39 UTC (rev 49155)
@@ -1,62 +0,0 @@
-# Build wxGUI extensions (vdigit and nviz)
-
-import os
-import sys
-
-def __read_variables(file, dict={}):
-    """!Read variables from file (e.g. Platform.make)
-    
-    @param file file descriptor
-    @param dict dictionary to store (variable, value)
-    """
-    for line in file.readlines():
-        if len(line) < 1:
-            continue # skip empty lines
-        if line[0] == '#':
-            continue # skip comments
-        try:
-            var, val = line.split('=', 1)
-        except ValueError:
-            continue
-        
-        dict[var.strip()] = val.strip()
-        
-def update_opts(flag, macros, inc_dirs, lib_dirs, libs, extras):
-    """!Update Extension options"""
-    global variables
-    line = variables[flag]
-    fw_next = False
-    for val in line.split(' '):
-        key = val[:2]
-        if fw_next:
-            extras.append(val)
-            fw_next = False
-        elif key == '-I': # includes
-            inc_dirs.append(val[2:])
-        elif key == '-D': # macros
-            if '=' in val[2:]:
-                macros.append(tuple(val[2:].split('=')))
-            else:
-                macros.append((val[2:], None))
-        elif key == '-L': # libs dir
-            lib_dirs.append(val[2:])
-        elif key == '-l':
-            libs.append(val[2:])
-        elif key == '-F': # frameworks dir
-            extras.append(val)
-        elif val == '-framework':
-            extras.append(val)
-            fw_next = True
-
-try:
-    Platform_make = open(os.path.join('..', '..', '..',
-                                      'include', 'Make', 'Platform.make'))
-    Grass_make = open(os.path.join('..', '..', '..',
-                                   'include', 'Make', 'Grass.make'))
-except IOError, e:
-    print 'Unable to compile wxGUI vdigit extension.\n\n', e
-    sys.exit(1)
-
-variables = {}
-__read_variables(Platform_make, variables)
-__read_variables(Grass_make, variables)



More information about the grass-commit mailing list