print "Running:", cmd
err = os.system(cmd)
- return err
+ return err/256
#----------------------------------------------------------------------------
self.HELPERLIB = 'wxPyHelpers'
self.HELPERLIBDIR = '/usr/local/lib'
self.CFLAGS = '-DSWIG_GLOBAL -DHAVE_CONFIG_H $(THREAD) -I. '\
- '`wx-config --cflags` -I$(PYINCLUDE) -I$(EXECINCLUDE) '\
+ '`$(WXCONFIG) --cflags` -I$(PYINCLUDE) -I$(EXECINCLUDE) '\
'-I$(WXPSRCDIR)'
- self.LFLAGS = '-L$(WXPSRCDIR) `wx-config --libs`'
+ self.LFLAGS = '-L$(WXPSRCDIR) `$(WXCONFIG) --libs`'
self.LIBS = '-l$(HELPERLIB)'
self.RMCMD = '-rm -f '
+ self.WXCONFIG = 'wx-config'
+
# **** What to do when I start supporting Motif, etc.???
self.GENCODEDIR = 'gtk'
# so we can do some sanity checking...
if sys.platform != 'win32':
if not self.CCC:
- self.CCC = os.popen('wx-config --cxx', 'r').read()[:-1]
+ self.CCC = os.popen('%(WXCONFIG)s --cxx' % self.__dict__, 'r').read()[:-1]
if not self.CCC:
print "Warning: C++ compiler not specified (CCC). Assuming c++"
self.CCC = 'c++'
if not self.CC:
- self.CCC = os.popen('wx-config --cc', 'r').read()[:-1]
+ self.CCC = os.popen('%(WXCONFIG)s --cc' % self.__dict__, 'r').read()[:-1]
if not self.CC:
print "Warning: C compiler not specified (CC). Assuming cc"
self.CC = 'cc'
for st in args:
pair = string.split(st, '=')
name = pair[0]
- value = pair[1]
+ value = string.join(pair[1:], '=')
self.__dict__[name] = value
except:
print "Error parsing command-line: %s" % st
WXPSRCDIR = %(WXPSRCDIR)s
HELPERLIB = %(HELPERLIB)s
HELPERLIBDIR = %(HELPERLIBDIR)s
-
+WXCONFIG=%(WXCONFIG)s
TARGETDIR = %(TARGETDIR)s