summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--astroid/__pkginfo__.py8
-rw-r--r--tox.ini1
2 files changed, 7 insertions, 2 deletions
diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py
index cb8bf291..8edbf796 100644
--- a/astroid/__pkginfo__.py
+++ b/astroid/__pkginfo__.py
@@ -35,8 +35,12 @@ def has_environment_marker_range_operators_support():
if has_environment_marker_range_operators_support():
extras_require[':python_version<"3.4"'] = ['enum34', 'singledispatch']
-elif py_version < (3, 4):
- install_requires.extend(['enum34', 'singledispatch'])
+ extras_require[':python_version<"3.2"'] = ['functools32']
+else:
+ if py_version < (3, 4):
+ install_requires.extend(['enum34', 'singledispatch'])
+ if py_version < (3, 2):
+ install_requires.append('functools32')
# pylint: disable=redefined-builtin; why license is a builtin anyway?
diff --git a/tox.ini b/tox.ini
index c746ee10..af98b270 100644
--- a/tox.ini
+++ b/tox.ini
@@ -9,6 +9,7 @@ commands = pylint -rn --rcfile={toxinidir}/pylintrc {envsitepackagesdir}/astroid
[testenv]
deps =
py27,py33,pypy: enum34
+ py27,pypy: functools32
lazy-object-proxy
nose
py27,py34,py35,py36: numpy