diff --git a/easybuild/easyblocks/o/openssl_wrapper.py b/easybuild/easyblocks/o/openssl_wrapper.py index d776c43a02..de7f4314eb 100644 --- a/easybuild/easyblocks/o/openssl_wrapper.py +++ b/easybuild/easyblocks/o/openssl_wrapper.py @@ -30,7 +30,11 @@ import os import re -from urllib.parse import urlparse +# support python2 +try: + from urllib.parse import urlparse +except ImportError: + from urlparse import urlparse from easybuild.tools import LooseVersion