bh: thuban setup.py,1.44,1.45
cvs@intevation.de
cvs at intevation.de
Mon May 17 17:48:00 CEST 2004
- Previous message: bh: thuban/libraries/shapelib shpopen.c, 1.2, 1.3 shapefil.h, 1.2, 1.3 dbfopen.c, 1.2, 1.3
- Next message: bh: thuban/libraries/pyshapelib setup.py, 1.1, 1.2 dbflib_wrap.c, 1.3, 1.4 dbflib.py, 1.2, 1.3 dbflib.i, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: bh
Update of /thubanrepository/thuban
In directory doto:/tmp/cvs-serv23933
Modified Files:
setup.py
Log Message:
Update to newest shapelib and get rid of Thuban specific extensions,
i.e. use the new DBFUpdateHeader instead of our DBFCommit kludge
* libraries/shapelib/shpopen.c: Update to version from current
shapelib CVS.
* libraries/shapelib/shapefil.h: Update to version from current
shapelib CVS.
* libraries/shapelib/dbfopen.c: Update to version from current
shapelib CVS.
(DBFCommit): Effectively removed since shapelib itself has
DBFUpdateHeader now which is better for what DBFCommit wanted to
achieve.
We're now using an unmodified version of dbfopen.
* libraries/pyshapelib/dbflib_wrap.c, libraries/pyshapelib/dbflib.py:
Update from dbflib.i
* libraries/pyshapelib/dbflib.i (DBFInfo_commit): New. Implementation of
the commit method. This new indirection is necessary because we use the
DBFUpdateHeader function now which is not available in shapelib <=
1.2.10
(DBFFile::commit): Use DBFInfo_commit as implementation
(pragma __class__): New. Kludge to remove the commit method when
the DBFUpdateHeader function isn't available
(_have_commit): New. Helper for the pragma kludge.
* libraries/pyshapelib/setup.py (dbf_macros): New. Return the
preprocessor macros needed to compile the dbflib wrapper. Determine
whether DBFUpdateHeader is available and define the right value of
HAVE_UPDATE_HEADER
(extensions): Use dbf_macros for the dbflibc extension
* setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
value '1' to the Lib.dbflibc extension. This simply reflects the
shapelib and pyshapelib updates
Index: setup.py
===================================================================
RCS file: /thubanrepository/thuban/setup.py,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- setup.py 22 Dec 2003 17:49:43 -0000 1.44
+++ setup.py 17 May 2004 15:47:57 -0000 1.45
@@ -1,4 +1,4 @@
-# Copyright (c) 2001, 2002, 2003 by Intevation GmbH
+# Copyright (c) 2001, 2002, 2003, 2004 by Intevation GmbH
# Authors:
# Bernhard Herzog <bh at intevation.de>
#
@@ -275,7 +275,8 @@
extensions.append(Extension("Lib.dbflibc",
[ext_dir + "/pyshapelib/dbflib_wrap.c",
shp_dir + "/dbfopen.c"],
- include_dirs = [shp_dir]))
+ include_dirs = [shp_dir],
+ define_macros = [("HAVE_UPDATE_HEADER", "1")]))
for name in ("shapelib", "dbflib"):
py_modules.append(ext_dir + "/pyshapelib/" + name)
- Previous message: bh: thuban/libraries/shapelib shpopen.c, 1.2, 1.3 shapefil.h, 1.2, 1.3 dbfopen.c, 1.2, 1.3
- Next message: bh: thuban/libraries/pyshapelib setup.py, 1.1, 1.2 dbflib_wrap.c, 1.3, 1.4 dbflib.py, 1.2, 1.3 dbflib.i, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)