diff --git a/setup.py b/setup.py index a3b3bde..795e585 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,8 @@ from setuptools import setup, find_packages -import md5 # fix for "No module named _md5" error +try: + import md5 # fix for "No module named _md5" error +except ImportError: + from hashlib import md5 setup(name='expiringdict',