Message211223
I found that using zipimporter('...whl').load_module(pip) directly works fine, so you may be able to use that as a workaround. (Forgot to mention it in my initial comment, but that's what prompted me to check against the ABC.)
I also backed out that change from the latest 3.3, built and tried again but got the same result. That said, I'm not 100% sure my build is reliable, since I don't regularly build CPython right now. Here are my results:
Python 3.3.4+ (3.3:4330b3cb7245+, Feb 14 2014, 09:03:52) [MSC v.1800 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path[:] = r"D:\...\pip-1.5.2-py2.py3-none-any.whl"
>>> import pip
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'pip'
I also tried using zipimporter directly, which got further but still failed (probably because of my build - _ssl was not built):
>>> from zipimport import zipimporter
>>> zipimporter(r"D:\...\pip-1.5.2-py2.py3-none-any.whl").load_module('pip')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\...\pip-1.5.2-py2.py3-none-any.whl\pip\__init__.py", line 10, in <module>
File "D:\...\pip-1.5.2-py2.py3-none-any.whl\pip\util.py", line 18, in <module>
File "D:\...\pip-1.5.2-py2.py3-none-any.whl\pip\_vendor\distlib\version.py", line 14, in <module>
File "D:\...\pip-1.5.2-py2.py3-none-any.whl\pip\_vendor\distlib\compat.py", line 66, in <module>
ImportError: cannot import name HTTPSHandler |
|
Date |
User |
Action |
Args |
2014-02-14 17:12:32 | steve.dower | set | recipients:
+ steve.dower, georg.brandl, gregory.p.smith, paul.moore, larry, Arfrever |
2014-02-14 17:12:31 | steve.dower | set | messageid: <1392397951.97.0.0954220348575.issue20621@psf.upfronthosting.co.za> |
2014-02-14 17:12:31 | steve.dower | link | issue20621 messages |
2014-02-14 17:12:31 | steve.dower | create | |
|