mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 20:10:10 +03:00
Add ordereddict to requirements only if necessary
This commit is contained in:
parent
7c14952a45
commit
84d6893094
8
setup.py
8
setup.py
|
@ -51,6 +51,12 @@ if sys.argv[-1] == 'publish':
|
|||
print(" git push --tags")
|
||||
sys.exit()
|
||||
|
||||
requirements = []
|
||||
try:
|
||||
from collections import OrderedDict
|
||||
except ImportError:
|
||||
# Back-port for Python < 2.7
|
||||
requirements.append('ordereddict')
|
||||
|
||||
setup(
|
||||
name='djangorestframework',
|
||||
|
@ -63,7 +69,7 @@ setup(
|
|||
packages=get_packages('rest_framework'),
|
||||
package_data=get_package_data('rest_framework'),
|
||||
test_suite='rest_framework.runtests.runtests.main',
|
||||
install_requires=[],
|
||||
install_requires=requirements,
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Environment :: Web Environment',
|
||||
|
|
Loading…
Reference in New Issue
Block a user