[mapserver-commits] r8953 - trunk/mapserver/mapscript/python

svn at osgeo.org svn at osgeo.org
Thu Apr 23 14:45:49 EDT 2009


Author: hobu
Date: 2009-04-23 14:45:49 -0400 (Thu, 23 Apr 2009)
New Revision: 8953

Modified:
   trunk/mapserver/mapscript/python/setup.py
Log:
make sure defines are used

Modified: trunk/mapserver/mapscript/python/setup.py
===================================================================
--- trunk/mapserver/mapscript/python/setup.py	2009-04-23 18:11:48 UTC (rev 8952)
+++ trunk/mapserver/mapscript/python/setup.py	2009-04-23 18:45:49 UTC (rev 8953)
@@ -136,6 +136,12 @@
         libs =  self.get_mapserver_config('libs')
         self.library_dirs = self.library_dirs + [x[2:] for x in libs.split() if x[:2] == "-L"]
 
+        # silly stuff to deal with setuptools doing things 
+        # like -D-DMYDEFINE
+        defs = self.get_mapserver_config('defines')
+        self.define = [x[2:] for x in defs.split() if x[:2] == "-D"]
+        self.define = ' -D'.join(self.define)
+
         ex_next = False
         libs = libs.split()
         for x in libs:



More information about the mapserver-commits mailing list