This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.
History
Date User Action Args
2012-06-02 21:57:34pnasratsetrecipients: + pnasrat, brett.cannon, eric.smith, Arfrever, Marc.Abramowitz, Ronan.Lamy
2012-06-02 21:57:34pnasratsetmessageid: <1338674254.75.0.631142113164.issue14982@psf.upfronthosting.co.za>
2012-06-02 21:57:34pnasratlinkissue14982 messages
2012-06-02 21:57:33pnasratcreate