Skip to content

Commit 07884e8

Browse files
committed
psycopg2 should not be mandatory
1 parent e52728a commit 07884e8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

postgis/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
from .multipolygon import MultiPolygon
88
from .point import Point
99
from .polygon import Polygon
10-
from .psycopg import register # Retrocompat.
10+
try:
11+
from .psycopg import register # Retrocompat.
12+
except ImportError:
13+
pass
1114

1215
__all__ = ['Geometry', 'register', 'Point', 'LineString', 'Polygon',
1316
'MultiPoint', 'MultiLineString', 'MultiPolygon',

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def list_modules(dirname):
4646
cmdclass = {'build_ext': build_ext}
4747

4848

49-
VERSION = (1, 0, 2)
49+
VERSION = (1, 0, 3)
5050

5151
setup(
5252
name='postgis',

0 commit comments

Comments
 (0)