Python: Why do some packages get installed as eggs and some as “egg folders”?

The Internal Structure of Python Eggs, Zip Support Metadata.

The Internal Structure of Python Eggs, Zip Support Metadata : If zip-safe exists, it means that the project will work properly when installed as an . Egg zipfile, and conversely the existence of not-zip-safe means the project should not be installed as an . Egg file ie.As an .

Egg directory. The zip_safe option to setuptools' setup() determines which file will be written. If the option isn't provided, setuptools attempts to make its own assessment of whether the package can work, based on code and content analysis.

A single egg file is in fact a zip archive with a particular directory structure inside. Per the zipimport documentation, only . Py, .

Pyc, and . Pyo files can be imported from zip files. So, if the package needs to import other kinds of module resources (like compiled c code; .

So files, . Pyd files) it won't work as a zip file. I don't know if this is the only reason that some eggs won't work as zip archives, but I think it is the main reason.

It's not the main reason. It's not even a correct reason. Setuptools adds special loaders to make .

So and . Pyd files work even with a compressed egg. The other answer is the correct one.

– pjeby May 24 '10 at 16:05.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions