Message162182
| Author |
pnasrat |
| Recipients |
Arfrever, Marc.Abramowitz, Ronan.Lamy, brett.cannon, eric.smith, pnasrat |
| Date |
2012年06月02日.21:57:33 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1338674254.75.0.631142113164.issue14982@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Ok so it seems I can't just use sys.meta_path in pip to work with ImpImporter due to according to the pydoc:
Note that ImpImporter does not currently support being used by placement on sys.meta_path.
I guess I can write a custom importer in pip for handling the vcs plugins or possibly change how we do that. Another option is to grossly hack around ala:
i = ImpImporter(path=vcs.__path__[0])
sys.path_importer_cache.setdefault(vcs.__path__[0], i)
Found another bug doing this though which I'll follow up with a patch. |
|