diff --git a/setup.py b/setup.py index acf4149..170b9e6 100755 --- a/setup.py +++ b/setup.py @@ -41,7 +41,6 @@ setup( 'django-cms>=3.0', 'django-taggit', 'django-filer', - 'django-select2' if sys.version_info[0]==2 else 'django-select2-py3', 'pytz', 'django-taggit-templatetags', 'django-taggit-autosuggest', @@ -52,6 +51,12 @@ setup( 'django-meta-mixin>=0.1.1', 'south>=1.0.1', ], + extras_require={ + ":python_version=='3.3'": ['django-select2-py3'], + ":python_version=='3.4'": ['django-select2-py3'], + ":python_version=='2.6'": ['django-select2'], + ":python_version=='2.7'": ['django-select2'], + }, license="BSD", zip_safe=False, keywords='djangocms-blog, blog, django, wordpress, multilingual',