Skip to content

Conversation

@otarabai
Copy link

@otarabai otarabai commented Aug 3, 2016

imp.load_module() is deprecated. Replacing it with importlib.machinery.SourceFileLoader(name, path).load_module()

@pfmoore
Copy link
Member

pfmoore commented Aug 3, 2016

I think we still support Python 2.6, and IIRC, importlib isn't available on 2.6. So unless we want to drop support for 2.6, we can't unconditionally use importlib (and I'm not sure there's much benefit in doing the conditional dance just to avoid a deprecation).

@commodo
Copy link

commodo commented Jun 18, 2017

also, if doing this change, I think you may need to update this var too
https://github.com/pypa/virtualenv/blob/master/virtualenv.py#L2117

that one contains a gzipped + base64 encoded file that also has a imp.load_module() call
that file gets generated when installing a virtualenv

@otarabai otarabai closed this Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants