Clarify wheels support zipimport

This commit is contained in:
Nick Coghlan 2014-01-28 23:26:43 +10:00
parent 2e47d2bdaa
commit 26d5c79fb9
1 changed files with 8 additions and 0 deletions

View File

@ -381,6 +381,14 @@ What's the deal with "purelib" vs. "platlib"?
depending on whether it is pure Python or not and those files should
be at the root with the appropriate setting given for "Root-is-purelib".
Is it possible to import Python code directly from a wheel file?
Yes, the wheel format is deliberately designed to be compatible with
Python's support for importing from zip files. While not all wheels
will support being used that way (for example, if they include C
extensions), most pure Python wheels can be used that way just by
placing their name on ``sys.path``.
References
==========