Skip to content

Commit

Permalink
Use PEP 426 environment markers for conditional dependency. Fixes tex…
Browse files Browse the repository at this point in the history
  • Loading branch information
rczajka committed Oct 15, 2014
1 parent 7039b39 commit 74008e2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

install_requires = []

try:
from collections import OrderedDict
except ImportError:
install_requires.extend(['ordereddict>=1.1'])

if 'develop' in sys.argv:
install_requires.extend([
Expand Down Expand Up @@ -39,6 +35,9 @@ def get_version():
],
keywords='textile,text',
install_requires=install_requires,
extras_require={
':python_version=="2.6"': ['ordereddict>=1.1'],
},
test_suite='nose.collector',
tests_require=['nose'],
include_package_data=True,
Expand Down

0 comments on commit 74008e2

Please sign in to comment.