Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #2 from SacNaturalFoods/master

Don't require pysqlite if sqlite3 is available
  • Loading branch information...
commit ed4c94b34ed23fcf726e7927e54d20df72a91666 2 parents 2d7fe03 + c0a41b1
Frankie Dintino authored October 10, 2012

Showing 1 changed file with 8 additions and 3 deletions. Show diff stats Hide diff stats

  1. 11  setup.py
11  setup.py
@@ -3,6 +3,13 @@
3 3
 
4 4
 version = '0.4'
5 5
 
  6
+try:
  7
+    import sqlite3
  8
+except ImportError:
  9
+    requires = ['pysqlite']
  10
+else:
  11
+    requires = []
  12
+
6 13
 setup(name='pyzipcode',
7 14
       version=version,
8 15
       description="query zip codes and location data",
@@ -16,9 +23,7 @@
16 23
       packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
17 24
       include_package_data=True,
18 25
       zip_safe=False,
19  
-      install_requires=[
20  
-        'pysqlite'
21  
-      ],
  26
+      install_requires=requires,
22 27
       entry_points="""
23 28
       # -*- Entry points: -*-
24 29
       """,

0 notes on commit ed4c94b

Please sign in to comment.
Something went wrong with that request. Please try again.