shapely 1.0rc1__py2.4.egg → 1.0rc2__py2.4.egg

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. EGG-INFO/PKG-INFO +16 -11
  2. shapely/geos.py +11 -5
  3. shapely/geos.pyc +0 -0
EGG-INFO/PKG-INFO CHANGED
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: Shapely
3
- Version: 1.0rc1
3
+ Version: 1.0rc2
4
4
  Summary: Geospatial geometries, predicates, and operations
5
5
  Home-page: http://trac.gispython.org/projects/PCL/wiki/Shapely
6
6
  Author: Sean Gillies
@@ -33,7 +33,9 @@ Description: Shapely
33
33
  Installation
34
34
  ------------
35
35
 
36
- Shapely can be installed from the Python package index::
36
+ Windows users should use the executable installer, which contains the required
37
+ GEOS DLL. Other users should acquire libgeos_c by any means, make sure that it
38
+ is on the system library path, and install from the Python package index::
37
39
 
38
40
  $ sudo easy_install Shapely
39
41
 
@@ -145,16 +147,19 @@ Description: Shapely
145
147
  Credits
146
148
  -------
147
149
 
148
- Sean Gillies (Pleiades)
149
- Howard Butler (Hobu, Inc.)
150
- Kai Lautaportti (Hexagon IT)
151
- Frederic Junod (Camptocamp SA)
152
- Eric Lemoine (Camptocamp SA)
153
- Justin Bronn (GeoDjango) for ctypes inspiration
154
- Artem Pavlenko (Mapnik) for help with GEOS DLLs
150
+ * Sean Gillies (Pleiades)
151
+ * Howard Butler (Hobu, Inc.)
152
+ * Kai Lautaportti (Hexagon IT)
153
+ * Fr |eaigue| d |eaigue| ric Junod (Camptocamp SA)
154
+ * Eric Lemoine (Camptocamp SA)
155
+ * Justin Bronn (GeoDjango) for ctypes inspiration
156
+ * Artem Pavlenko (Mapnik) for help with GEOS DLLs
155
157
 
156
- Some of this work was supported by a grant (Pleiades) from the U.S. National
157
- Endowment for the Humanities (http://www.neh.gov).
158
+ .. |eaigue| unicode:: U+00E9
159
+ :trim:
160
+
161
+ Major portions of this work were supported by a grant (to Pleiades) from the
162
+ U.S. National Endowment for the Humanities (http://www.neh.gov).
158
163
 
159
164
 
160
165
  Keywords: geometry topology
shapely/geos.py CHANGED
@@ -12,13 +12,19 @@ import shapely
12
12
 
13
13
  if sys.platform == 'win32':
14
14
  try:
15
- geospath = os.path.abspath(
16
- shapely.__file__ + "../../../../../DLLs/geos_c.dll"
17
- )
18
- lgeos = CDLL(geospath)
15
+ local_dlls = os.path.abspath(os.__file__ + "../../../DLLs")
16
+ original_path = os.environ['PATH']
17
+ os.environ['PATH'] = "%s;%s" % (local_dlls, original_path)
18
+ lgeos = CDLL("geos.dll")
19
19
  except (ImportError, WindowsError):
20
20
  raise
21
- free = cdll.msvcrt.free
21
+ def free(m):
22
+ try:
23
+ cdll.msvcrt.free(m)
24
+ except WindowsError:
25
+ # XXX: See http://trac.gispython.org/projects/PCL/ticket/149
26
+ pass
27
+
22
28
  elif sys.platform == 'darwin':
23
29
  lgeos = CDLL(find_library('geos_c'))
24
30
  free = CDLL(find_library('libc')).free
shapely/geos.pyc CHANGED
Binary file