Permalink
Browse files

Merge pull request #2 from SacNaturalFoods/master

Don't require pysqlite if sqlite3 is available
  • Loading branch information...
2 parents 2d7fe03 + c0a41b1 commit ed4c94b34ed23fcf726e7927e54d20df72a91666 @fdintino committed Oct 10, 2012
Showing with 8 additions and 3 deletions.
  1. +8 −3 setup.py
View
@@ -3,6 +3,13 @@
version = '0.4'
+try:
+ import sqlite3
+except ImportError:
+ requires = ['pysqlite']
+else:
+ requires = []
+
setup(name='pyzipcode',
version=version,
description="query zip codes and location data",
@@ -16,9 +23,7 @@
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
- install_requires=[
- 'pysqlite'
- ],
+ install_requires=requires,
entry_points="""
# -*- Entry points: -*-
""",

0 comments on commit ed4c94b

Please sign in to comment.