davidchua/pymessenger

use of enum breaks python2

drice opened this issue · 2 comments

drice commented

Python 3 has enum included by default, but Python 2 does not.

To have this work with pip, I suggest we modify the setup.py to the following:

install_requires = [
'requests',
'requests-toolbelt',
'six'
]

try:
import enum
except ImportError:
install_requires.append('enum')

drice commented

PR #26

Fixed #26.