[Python-checkins] peps: Clarify wheels support zipimport
nick.coghlan
python-checkins at python.org
Tue Jan 28 14:26:55 CET 2014
http://hg.python.org/peps/rev/811e34eda04c
changeset: 5364:811e34eda04c
user: Nick Coghlan <ncoghlan at gmail.com>
date: Tue Jan 28 23:26:43 2014 +1000
summary:
Clarify wheels support zipimport
files:
pep-0427.txt | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/pep-0427.txt b/pep-0427.txt
--- a/pep-0427.txt
+++ b/pep-0427.txt
@@ -381,6 +381,14 @@
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
==========
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list