Skip to content

Commit 1d7afe5

Browse files
committed
Add dependency on ordereddict for python 2.6
1 parent 584714d commit 1d7afe5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

setup.py

+9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import subprocess
2+
import sys
23
from setuptools import setup, find_packages, Extension
34

45
# hum... borrowed from psycopg2
@@ -17,6 +18,14 @@ def get_pg_config(kind, pg_config="pg_config"):
1718
extra_compile_args = ['-shared'],
1819
sources=['src/utils.c'])
1920

21+
requires=[]
22+
23+
if sys.version_info[0] == 2:
24+
if sys.version.info[1] == 6:
25+
requires.append("ordereddict")
26+
elif sys.version.info[1] < 6:
27+
sys.exit("Sorry, you need at least python 2.6 for Multicorn")
28+
2029
setup(
2130
name='multicorn',
2231
version='__VERSION__',

0 commit comments

Comments
 (0)