I maintain a few Python packages. I have a very similar
setup.py file for each of them. However, when doing
setup.py install, one of my packages gets installed as an egg, while the others get installed as "egg folders", i.e. folders with an extension of "egg".
What is the difference between them that causes this different behavior?
zip-safeexists, it means that the project will work properly when installed as an
.eggzipfile, and conversely the existence of
not-zip-safemeans the project should not be installed as an
.eggfile [ie. as an
zip_safeoption 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.