shapely 1.2b3__tar.gz → 1.2b4__tar.gz

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 (66) hide show
  1. {Shapely-1.2b3 → Shapely-1.2b4}/PKG-INFO +13 -7
  2. {Shapely-1.2b3 → Shapely-1.2b4}/README.txt +12 -6
  3. {Shapely-1.2b3 → Shapely-1.2b4}/Shapely.egg-info/PKG-INFO +13 -7
  4. {Shapely-1.2b3 → Shapely-1.2b4}/setup.py +4 -2
  5. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/geos.py +41 -17
  6. {Shapely-1.2b3 → Shapely-1.2b4}/CHANGES.txt +0 -0
  7. {Shapely-1.2b3 → Shapely-1.2b4}/CREDITS.txt +0 -0
  8. {Shapely-1.2b3 → Shapely-1.2b4}/LICENSE.txt +0 -0
  9. {Shapely-1.2b3 → Shapely-1.2b4}/MANIFEST.in +0 -0
  10. {Shapely-1.2b3 → Shapely-1.2b4}/Shapely.egg-info/SOURCES.txt +0 -0
  11. {Shapely-1.2b3 → Shapely-1.2b4}/Shapely.egg-info/dependency_links.txt +0 -0
  12. {Shapely-1.2b3 → Shapely-1.2b4}/Shapely.egg-info/top_level.txt +0 -0
  13. {Shapely-1.2b3 → Shapely-1.2b4}/examples/dissolve.py +0 -0
  14. {Shapely-1.2b3 → Shapely-1.2b4}/examples/intersect.py +0 -0
  15. {Shapely-1.2b3 → Shapely-1.2b4}/setup.cfg +0 -0
  16. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/__init__.py +0 -0
  17. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/coords.py +0 -0
  18. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/ctypes_declarations.py +0 -0
  19. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/geometry/__init__.py +0 -0
  20. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/geometry/base.py +0 -0
  21. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/geometry/collection.py +0 -0
  22. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/geometry/geo.py +0 -0
  23. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/geometry/linestring.py +0 -0
  24. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/geometry/multilinestring.py +0 -0
  25. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/geometry/multipoint.py +0 -0
  26. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/geometry/multipolygon.py +0 -0
  27. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/geometry/point.py +0 -0
  28. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/geometry/polygon.py +0 -0
  29. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/geometry/proxy.py +0 -0
  30. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/geoms.py +0 -0
  31. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/impl.py +0 -0
  32. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/iterops.py +0 -0
  33. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/linref.py +0 -0
  34. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/ops.py +0 -0
  35. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/predicates.py +0 -0
  36. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/prepared.py +0 -0
  37. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/Array.txt +0 -0
  38. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/GeoInterface.txt +0 -0
  39. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/IterOps.txt +0 -0
  40. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/LineString.txt +0 -0
  41. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/MultiLineString.txt +0 -0
  42. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/MultiPoint.txt +0 -0
  43. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/MultiPolygon.txt +0 -0
  44. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/Operations.txt +0 -0
  45. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/Persist.txt +0 -0
  46. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/Point.txt +0 -0
  47. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/Polygon.txt +0 -0
  48. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/Predicates.txt +0 -0
  49. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/__init__.py +0 -0
  50. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/attribute-chains.txt +0 -0
  51. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/binascii_hex.txt +0 -0
  52. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/dimensions.txt +0 -0
  53. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/invalid_intersection.txt +0 -0
  54. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/linear-referencing.txt +0 -0
  55. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/linemerge.txt +0 -0
  56. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/polygonize.txt +0 -0
  57. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/test_doctests.py +0 -0
  58. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/test_equality.py +0 -0
  59. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/test_geomseq.py +0 -0
  60. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/test_prepared.py +0 -0
  61. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/test_xy.py +0 -0
  62. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/threading_test.py +0 -0
  63. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/tests/wkt_locale.txt +0 -0
  64. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/topology.py +0 -0
  65. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/wkb.py +0 -0
  66. {Shapely-1.2b3 → Shapely-1.2b4}/shapely/wkt.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: Shapely
3
- Version: 1.2b3
3
+ Version: 1.2b4
4
4
  Summary: Planar geometries, predicates, and operations
5
5
  Home-page: http://trac.gispython.org/lab/wiki/Shapely
6
6
  Author: Sean Gillies
@@ -124,14 +124,20 @@ Description:
124
124
 
125
125
  Shapely is written by:
126
126
 
127
- * Sean Gillies (Pleiades)
127
+ * Sean Gillies
128
128
  * Aron Bierbaum
129
- * Howard Butler (Hobu, Inc.)
130
- * Kai Lautaportti (Hexagon IT)
131
- * Fr |eaigue| d |eaigue| ric Junod (Camptocamp SA)
132
- * Eric Lemoine (Camptocamp SA)
129
+ * Kai Lautaportti
133
130
 
134
- with additional help from:
131
+ Patches contributed by:
132
+
133
+ * Howard Butler
134
+ * Fr |eaigue| d |eaigue| ric Junod
135
+ * Eric Lemoine
136
+ * Jonathan Tartley
137
+ * Kristian Thy
138
+ * Oliver Tonnhofer
139
+
140
+ Additional help from:
135
141
 
136
142
  * Justin Bronn (GeoDjango) for ctypes inspiration
137
143
  * Martin Davis (JTS)
@@ -116,14 +116,20 @@ Credits
116
116
 
117
117
  Shapely is written by:
118
118
 
119
- * Sean Gillies (Pleiades)
119
+ * Sean Gillies
120
120
  * Aron Bierbaum
121
- * Howard Butler (Hobu, Inc.)
122
- * Kai Lautaportti (Hexagon IT)
123
- * Fr |eaigue| d |eaigue| ric Junod (Camptocamp SA)
124
- * Eric Lemoine (Camptocamp SA)
121
+ * Kai Lautaportti
125
122
 
126
- with additional help from:
123
+ Patches contributed by:
124
+
125
+ * Howard Butler
126
+ * Fr |eaigue| d |eaigue| ric Junod
127
+ * Eric Lemoine
128
+ * Jonathan Tartley
129
+ * Kristian Thy
130
+ * Oliver Tonnhofer
131
+
132
+ Additional help from:
127
133
 
128
134
  * Justin Bronn (GeoDjango) for ctypes inspiration
129
135
  * Martin Davis (JTS)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: Shapely
3
- Version: 1.2b3
3
+ Version: 1.2b4
4
4
  Summary: Planar geometries, predicates, and operations
5
5
  Home-page: http://trac.gispython.org/lab/wiki/Shapely
6
6
  Author: Sean Gillies
@@ -124,14 +124,20 @@ Description:
124
124
 
125
125
  Shapely is written by:
126
126
 
127
- * Sean Gillies (Pleiades)
127
+ * Sean Gillies
128
128
  * Aron Bierbaum
129
- * Howard Butler (Hobu, Inc.)
130
- * Kai Lautaportti (Hexagon IT)
131
- * Fr |eaigue| d |eaigue| ric Junod (Camptocamp SA)
132
- * Eric Lemoine (Camptocamp SA)
129
+ * Kai Lautaportti
133
130
 
134
- with additional help from:
131
+ Patches contributed by:
132
+
133
+ * Howard Butler
134
+ * Fr |eaigue| d |eaigue| ric Junod
135
+ * Eric Lemoine
136
+ * Jonathan Tartley
137
+ * Kristian Thy
138
+ * Oliver Tonnhofer
139
+
140
+ Additional help from:
135
141
 
136
142
  * Justin Bronn (GeoDjango) for ctypes inspiration
137
143
  * Martin Davis (JTS)
@@ -4,7 +4,9 @@ try:
4
4
  from distribute_setup import use_setuptools
5
5
  use_setuptools()
6
6
  except:
7
- warnings.warn("Failed to import distribute_setup", ImportWarning)
7
+ warnings.warn(
8
+ "Failed to import distribute_setup, continuing without distribute.",
9
+ Warning)
8
10
 
9
11
  from setuptools import setup, find_packages
10
12
  import sys
@@ -14,7 +16,7 @@ readme_text = file('README.txt', 'rb').read()
14
16
  setup_args = dict(
15
17
  metadata_version = '1.2',
16
18
  name = 'Shapely',
17
- version = '1.2b3',
19
+ version = '1.2b4',
18
20
  requires_python = '>=2.5,<3',
19
21
  requires_external = 'libgeos_c (>=3.1)',
20
22
  description = 'Planar geometries, predicates, and operations',
@@ -22,21 +22,15 @@ class NullHandler(logging.Handler):
22
22
  LOG = logging.getLogger(__name__)
23
23
  LOG.addHandler(NullHandler())
24
24
 
25
- # Find and load the GEOS library
26
- if sys.platform == 'win32':
27
- try:
28
- local_dlls = os.path.abspath(os.__file__ + "../../../DLLs")
29
- original_path = os.environ['PATH']
30
- os.environ['PATH'] = "%s;%s" % (local_dlls, original_path)
31
- _lgeos = CDLL("geos.dll")
32
- except (ImportError, WindowsError):
33
- raise
34
- def free(m):
35
- try:
36
- cdll.msvcrt.free(m)
37
- except WindowsError:
38
- # XXX: See http://trac.gispython.org/projects/PCL/ticket/149
39
- pass
25
+ # Find and load the GEOS and C libraries
26
+ # If this ever gets any longer, we'll break it into separate modules
27
+
28
+ if sys.platform == 'linux2':
29
+ _lgeos = CDLL(find_library('geos_c'))
30
+ free = CDLL(find_library('c')).free
31
+ free.argtypes = [c_void_p]
32
+ free.restype = None
33
+
40
34
  elif sys.platform == 'darwin':
41
35
  lib = find_library('geos_c')
42
36
  if lib is None:
@@ -54,10 +48,39 @@ elif sys.platform == 'darwin':
54
48
  if lib is None:
55
49
  raise ImportError("Could not find geos_c library")
56
50
  _lgeos = CDLL(lib)
57
- free = CDLL(find_library('libc')).free
51
+ free = CDLL(find_library('c')).free
58
52
  free.argtypes = [c_void_p]
59
53
  free.restype = None
60
- else:
54
+
55
+ elif sys.platform == 'win32':
56
+ try:
57
+ local_dlls = os.path.abspath(os.__file__ + "../../../DLLs")
58
+ original_path = os.environ['PATH']
59
+ os.environ['PATH'] = "%s;%s" % (local_dlls, original_path)
60
+ _lgeos = CDLL("geos.dll")
61
+ except (ImportError, WindowsError):
62
+ raise
63
+ def free(m):
64
+ try:
65
+ cdll.msvcrt.free(m)
66
+ except WindowsError:
67
+ # XXX: See http://trac.gispython.org/projects/PCL/ticket/149
68
+ pass
69
+
70
+ elif sys.platform == 'sunos5':
71
+ # Try the major versioned name first, falling back on the unversioned
72
+ # name.
73
+ try:
74
+ _lgeos = CDLL('libgeos_c.so.1')
75
+ except (OSError, ImportError):
76
+ _lgeos = CDLL('libgeos_c.so')
77
+ except:
78
+ raise
79
+ free = CDLL('libc.so.1').free
80
+ free.argtypes = [c_void_p]
81
+ free.restype = None
82
+
83
+ else: # other *nix systems
61
84
  # Try the major versioned name first, falling back on the unversioned
62
85
  # name.
63
86
  try:
@@ -344,5 +367,6 @@ elif geos_c_version >= (1, 5, 0):
344
367
  L = LGEOS15
345
368
  else:
346
369
  L = LGEOS14
370
+
347
371
  lgeos = L(_lgeos)
348
372
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes