Bladeren bron

Installs the ordereddict module if python_version<2.7

rnoel 13 jaren geleden
bovenliggende
commit
95bada7358
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2 0
      setup.py

+ 2 - 0
setup.py

@@ -55,6 +55,8 @@ install_requires.extend([
 py_version = sys.version_info
 py_version = sys.version_info
 is_jython = sys.platform.startswith("java")
 is_jython = sys.platform.startswith("java")
 is_pypy = hasattr(sys, "pypy_version_info")
 is_pypy = hasattr(sys, "pypy_version_info")
+if sys.version_info < (2, 7):
+    install_requires.append("ordereddict") # Replacement for the ordered dict
 if sys.version_info < (2, 6) and not (is_jython or is_pypy):
 if sys.version_info < (2, 6) and not (is_jython or is_pypy):
     install_requires.append("multiprocessing")
     install_requires.append("multiprocessing")
 if sys.version_info < (2, 5):
 if sys.version_info < (2, 5):