[GRASS-SVN] r48401 - grass/trunk/lib/python/temporal

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 21 17:11:30 EDT 2011


Author: huhabla
Date: 2011-09-21 14:11:30 -0700 (Wed, 21 Sep 2011)
New Revision: 48401

Added:
   grass/trunk/lib/python/temporal/Makefile
   grass/trunk/lib/python/temporal/__init__.py
Log:
Moved the temporal GIS code from grass.script into a separate library structure named grass.temporal.

Added: grass/trunk/lib/python/temporal/Makefile
===================================================================
--- grass/trunk/lib/python/temporal/Makefile	                        (rev 0)
+++ grass/trunk/lib/python/temporal/Makefile	2011-09-21 21:11:30 UTC (rev 48401)
@@ -0,0 +1,31 @@
+MODULE_TOPDIR = ../../..
+
+include $(MODULE_TOPDIR)/include/Make/Other.make
+include $(MODULE_TOPDIR)/include/Make/Python.make
+include $(MODULE_TOPDIR)/include/Make/Doxygen.make
+
+PYDIR = $(ETC)/python
+GDIR = $(PYDIR)/grass
+DSTDIR = $(GDIR)/temporal
+
+MODULES = base core abstract_datasets space_time_datasets metadata spatial_extent temporal_extent
+
+PYFILES := $(patsubst %,$(DSTDIR)/%.py,$(MODULES) __init__)
+PYCFILES := $(patsubst %,$(DSTDIR)/%.pyc,$(MODULES) __init__)
+
+default: $(PYFILES) $(PYCFILES) $(GDIR)/__init__.py $(GDIR)/__init__.pyc
+
+$(PYDIR):
+	$(MKDIR) $@
+
+$(GDIR): | $(PYDIR)
+	$(MKDIR) $@
+
+$(DSTDIR): | $(GDIR)
+	$(MKDIR) $@
+
+$(DSTDIR)/%: % | $(DSTDIR)
+	$(INSTALL_DATA) $< $@
+
+#doxygen:
+DOXNAME = python

Added: grass/trunk/lib/python/temporal/__init__.py
===================================================================
--- grass/trunk/lib/python/temporal/__init__.py	                        (rev 0)
+++ grass/trunk/lib/python/temporal/__init__.py	2011-09-21 21:11:30 UTC (rev 48401)
@@ -0,0 +1,6 @@
+from core import *
+from base import *
+from temporal_extent import *
+from spatial_extent import *
+from metadata import *
+from space_time_datasets import *



More information about the grass-commit mailing list