summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--astroid/__pkginfo__.py7
-rw-r--r--setup.py1
2 files changed, 3 insertions, 5 deletions
diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py
index fe08afb9..8cfe3dbc 100644
--- a/astroid/__pkginfo__.py
+++ b/astroid/__pkginfo__.py
@@ -6,8 +6,6 @@
# For details: https://github.com/PyCQA/astroid/blob/master/COPYING.LESSER
"""astroid packaging information"""
-import sys
-
distname = 'astroid'
modname = 'astroid'
@@ -15,10 +13,9 @@ modname = 'astroid'
numversion = (1, 5, 0)
version = '.'.join([str(num) for num in numversion])
+extras_require = {}
install_requires = ['lazy_object_proxy', 'six', 'wrapt']
-
-if sys.version_info < (3, 4):
- install_requires += ['enum34', 'singledispatch']
+extras_require[':python_version<"3.4"'] = ['enum34', 'singledispatch']
# pylint: disable=redefined-builtin; why license is a builtin anyway?
license = 'LGPL'
diff --git a/setup.py b/setup.py
index cafb9dc4..d6e7fe6d 100644
--- a/setup.py
+++ b/setup.py
@@ -53,6 +53,7 @@ def install():
url = web,
include_package_data = True,
install_requires = install_requires,
+ extras_require=extras_require,
packages = find_packages(),
cmdclass={'install_lib': AstroidInstallLib,
'easy_install': AstroidEasyInstallLib}