diff options
| author | Calen Pennington <cale@edx.org> | 2017-03-10 14:28:11 -0500 |
|---|---|---|
| committer | ceridwen <ceridwen@users.noreply.github.com> | 2017-03-13 16:52:44 -0400 |
| commit | 58d20acfb4ece77271f16b6a6543b61facfa4762 (patch) | |
| tree | 9db01a6b37a343cf4987309a951a1c22e565b24c | |
| parent | 5f1220455b6ee85ea4a28f3a4175431949cf847d (diff) | |
| download | astroid-git-58d20acfb4ece77271f16b6a6543b61facfa4762.tar.gz | |
Make functools.lru_cache available in all python versions
| -rw-r--r-- | astroid/__pkginfo__.py | 8 | ||||
| -rw-r--r-- | tox.ini | 1 |
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? @@ -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 |
