Skip to content

Commit

Permalink
Another try for py2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
c0fec0de committed Mar 13, 2017
1 parent 2a6fcc2 commit 6e4910d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion anytree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
try:
from collections import OrderedDict
except ImportError:
from future.moves.collections import OrderedDict
from ordereddict import OrderedDict

import re
import six
Expand Down
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,10 @@
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
config['long_description'] = f.read()

# python 2.6 does not implement OrderedDict, so we have to install it
try:
from collections import OrderedDict # noqa
except ImportError:
config['install_requires'].append("ordereddict")

setup(**config)

0 comments on commit 6e4910d

Please sign in to comment.