[GRASS-SVN] r39443 - in grass/trunk: gui/wxpython gui/wxpython/nviz gui/wxpython/vdigit include/Make swig/python swig/python/NumPtr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 8 07:57:46 EDT 2009


Author: glynn
Date: 2009-10-08 07:57:46 -0400 (Thu, 08 Oct 2009)
New Revision: 39443

Modified:
   grass/trunk/gui/wxpython/Makefile
   grass/trunk/gui/wxpython/nviz/Makefile
   grass/trunk/gui/wxpython/vdigit/Makefile
   grass/trunk/include/Make/Platform.make.in
   grass/trunk/include/Make/Python.make
   grass/trunk/swig/python/Makefile
   grass/trunk/swig/python/NumPtr/Makefile
Log:
Use $(PYTHON) instead of hard-coded "python"


Modified: grass/trunk/gui/wxpython/Makefile
===================================================================
--- grass/trunk/gui/wxpython/Makefile	2009-10-08 11:45:42 UTC (rev 39442)
+++ grass/trunk/gui/wxpython/Makefile	2009-10-08 11:57:46 UTC (rev 39443)
@@ -28,7 +28,7 @@
 
 menustrings.py: gui_modules/menudata.py xml/menudata.xml
 	GISBASE="$(GISBASE)" \
-	python $< > $@
+	$(PYTHON) $< > $@
 
 #doxygen:
 DOXNAME=wxpython

Modified: grass/trunk/gui/wxpython/nviz/Makefile
===================================================================
--- grass/trunk/gui/wxpython/nviz/Makefile	2009-10-08 11:45:42 UTC (rev 39442)
+++ grass/trunk/gui/wxpython/nviz/Makefile	2009-10-08 11:57:46 UTC (rev 39443)
@@ -46,7 +46,7 @@
 	WXWIDGETSLIB="$(WXWIDGETSLIB)" \
 	OPENGL_X11="$(OPENGL_X11)" \
 	XCFLAGS="$(XCFLAGS)" \
-	python setup.py build_ext --swig=$(SWIG) --swig-opts=-c++ --build-lib=$(OBJDIR) --build-temp=$(OBJDIR)
+	$(PYTHON) setup.py build_ext --swig=$(SWIG) --swig-opts=-c++ --build-lib=$(OBJDIR) --build-temp=$(OBJDIR)
 
 .NOTPARALLEL: $(LIB_NAME).py $(LIB_NAME)_wrap.cpp
 

Modified: grass/trunk/gui/wxpython/vdigit/Makefile
===================================================================
--- grass/trunk/gui/wxpython/vdigit/Makefile	2009-10-08 11:45:42 UTC (rev 39442)
+++ grass/trunk/gui/wxpython/vdigit/Makefile	2009-10-08 11:57:46 UTC (rev 39443)
@@ -40,7 +40,7 @@
 	GEOSCFLAGS="$(GEOSCFLAGS)" \
 	WXWIDGETSCXXFLAGS="$(WXWIDGETSCXXFLAGS)" \
 	WXWIDGETSLIB="$(WXWIDGETSLIB)" \
-	python setup.py build_ext --swig=$(SWIG) --swig-opts=-c++ --build-lib=$(OBJDIR) --build-temp=$(OBJDIR)
+	$(PYTHON) setup.py build_ext --swig=$(SWIG) --swig-opts=-c++ --build-lib=$(OBJDIR) --build-temp=$(OBJDIR)
 
 .NOTPARALLEL: $(LIB_NAME).py $(LIB_NAME)_wrap.cpp
 

Modified: grass/trunk/include/Make/Platform.make.in
===================================================================
--- grass/trunk/include/Make/Platform.make.in	2009-10-08 11:45:42 UTC (rev 39442)
+++ grass/trunk/include/Make/Platform.make.in	2009-10-08 11:57:46 UTC (rev 39443)
@@ -213,6 +213,7 @@
 CAIRO_HAS_XRENDER_SURFACE = @CAIRO_HAS_XRENDER_SURFACE@
 
 #Python
+PYTHON              = python
 PYTHONINC           = @PYTHONINC@
 PYTHONCFLAGS        = @PYTHONCFLAGS@
 PYTHONLDFLAGS       = @PYTHONLDFLAGS@

Modified: grass/trunk/include/Make/Python.make
===================================================================
--- grass/trunk/include/Make/Python.make	2009-10-08 11:45:42 UTC (rev 39442)
+++ grass/trunk/include/Make/Python.make	2009-10-08 11:57:46 UTC (rev 39443)
@@ -1,5 +1,4 @@
 
-PYTHON = python
 ifeq ($(findstring darwin,$(ARCH)),darwin)
 PYMOD_LD = $(CXX) -bundle -undefined dynamic_lookup
 PYMOD_LDFLAGS := $(SHLIB_LDFLAGS) -L$(ARCH_LIBDIR)

Modified: grass/trunk/swig/python/Makefile
===================================================================
--- grass/trunk/swig/python/Makefile	2009-10-08 11:45:42 UTC (rev 39442)
+++ grass/trunk/swig/python/Makefile	2009-10-08 11:57:46 UTC (rev 39443)
@@ -53,13 +53,14 @@
 
 LIBFILES := $(patsubst %,$(DSTDIR)/_%.so,$(MODULES))
 PYFILES  := $(patsubst %,$(DSTDIR)/%.py,$(MODULES) __init__)
+PYCFILES  := $(patsubst %,$(DSTDIR)/%.pyc,$(MODULES) __init__)
 LLIBFILES := $(patsubst %,_%.so,$(MODULES))
 WRAPFILES := $(patsubst %,%_wrap.c,$(MODULES))
 LPYFILES := $(patsubst %,%.py,$(MODULES))
 
 default:
 	$(MAKE) $(DSTDIR)
-	$(MAKE) $(LLIBFILES) $(WRAPFILES) $(LPYFILES) $(LIBFILES) $(PYFILES)
+	$(MAKE) $(LLIBFILES) $(WRAPFILES) $(LPYFILES) $(LIBFILES) $(PYFILES) $(PYCFILES)
 
 %_wrap.c %.py: ../include/%.i $(EXTRA_SWIG)
 	$(SWIG) $(SWIGFLAGS) -python -o $*_wrap.c -module $* -shadow $<

Modified: grass/trunk/swig/python/NumPtr/Makefile
===================================================================
--- grass/trunk/swig/python/NumPtr/Makefile	2009-10-08 11:45:42 UTC (rev 39442)
+++ grass/trunk/swig/python/NumPtr/Makefile	2009-10-08 11:57:46 UTC (rev 39443)
@@ -3,9 +3,9 @@
 all: numptr
 
 numptr:
-	python setup.py build --build-lib build/lib
+	$(PYTHON) setup.py build --build-lib build/lib
 	# build bytecode .pyc file
-	python build/lib/test.py >& /dev/null
+	$(PYTHON) build/lib/test.py >& /dev/null
 
 clean:
 	-rm -rf build/



More information about the grass-commit mailing list