[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-17 Thread Paul Moore

Paul Moore added the comment:

Egg files are a format defined by setuptools. If you look in the setuptools 
documentation it notes that egg files are simply zipfiles with a particular 
structure and naming convention. So from a core Python perspective, you can use 
eggs just like any other zipfile. See the zipimport documentation for further 
details if you need them.

To further confuse the issue, setuptools includes some pretty complex 
mechanisms for adding eggs to syst.path so that their contents can be imported 
(there are .pth files and multi-version support, for example). Those mechanisms 
are part of setuptools, not of core Python. From a core Python perspective, the 
path handling is something you do manually.

So while I understand your confusion, I think you should understand that it is 
a confusion over the setuptools implementation, and how it interacts with the 
mechanisms defined by core Python (which are defined in terms of zipfiles). So 
if you feel there are any documentation issues, they should probably be 
addressed by setuptools rather than in the core docs.

On a peripherally related point, your comment zipped egg files in sys.path are 
not found doesn't really explain your problem very well. When reporting to 
setuptools, I'd suggest that you need to clarify your problem a bit better - 
what steps did you take, did they match the steps that the setuptools docs tell 
you to use, and how did the failure show itself? But as I say, that's for a 
setuptools bug report.

--
nosy: +paul.moore

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23625
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-17 Thread Thomas Guettler

Thomas Guettler added the comment:

The docs should be where new users look.

I don't speak about several hundret words 

Where do you think new users look for documentation if they want a method which 
does find a module?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23625
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-17 Thread Thomas Guettler

Thomas Guettler added the comment:

In this case I am wearing newbee user glasses.

And with this glasses on my nose, I don't care for implementation.

I am confused that imp module does not work like import foo.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23625
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-17 Thread Mark Lawrence

Mark Lawrence added the comment:

https://pythonhosted.org/setuptools/

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23625
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-12 Thread Brett Cannon

Brett Cannon added the comment:

I understood what you asked. My point is that mentioning eggs in the imp 
doesn't make sense since the imp module nor import supports them natively. Eggs 
are a setuptools thing, not a Python standard library thing.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23625
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-11 Thread Brett Cannon

Brett Cannon added the comment:

Egg files are not a part of the Python stdlib and so I don't understand why you 
expected them to be supported by imp? Anyway, because egg files are not from 
Python itself but a third-party project they shouldn't be referenced from the 
official docs as it would just confuse people who don't know what eggs even are.

--
assignee:  - docs@python
components: +Documentation
nosy: +brett.cannon, docs@python
resolution:  - not a bug
status: open - closed
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23625
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-11 Thread Thomas Guettler

Thomas Guettler added the comment:

Dear Bret Cannon,

I don't ask for egg support in the imp module.
I don't want to change the implemenation of imp.find_module()

I just want to update the docs.

Most people run a python version which supports loading zipped eggs.

Please reopened this, since I think you misunderstood me. If not, and you don't 
care about the docs. Leave it closed :-)

--
nosy: +guettli

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23625
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-10 Thread Thomas Güttler

New submission from Thomas Güttler:

Please update the docs of imp.find_module()

https://docs.python.org/2/library/imp.html#imp.find_module

zipped egg files in sys.path are not found.

Please provide a link how to find modules in sys.path like the interpreter does 
(with support of zipped egg files).

--
messages: 237746
nosy: Thomas Güttler
priority: normal
severity: normal
status: open
title: load_module() docs: zipped eggs are not loaded.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23625
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com