zip_ safe = False is not working in setup.py file. I want to install my project as a folder instead of .egg file. So I have used zip_ safe= False inside setup function in setup.py file. But when I am running this my project is getting installed as .egg file instead of a directory inside /Library/Python/2.7/site-packages.
Update all setup.py’s to zip_safe=False. This prevents zipped eggs from being installed, and seems to improve overall compatiblity, as discussed in #6 . Installations now pass in 95/160 combos, instead of only 72/160. master.
Yes, there is a reason – Django uses distutils, not setuptools. zip_safe is a setuptools option if you apply the provided patch and run python setup.py install , you get the warning {{{UserWarning: Unknown.
add zip_safe=False to setup.py Loading branch information shamrin committed May 17, 2019. Verified This commit was created on GitHub. com and signed with a verified signature using GitHubs key. GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits. 1 parent …
timhoffm merged 1 commit into matplotlib: master from anntzer: zip_safe on Aug 25, 2019. +0 ?4. Conversation 4 Commits 1 Checks 3 Files changed 1. Conversation. Remove zip_safe=False flag from setup.py. Loading status checks . c9b2c37. The flag only matters when installing from eggs ( https://setuptools.readthedocs.io/en/latest/setuptools.
1/7/2013 · here’s a little patch, if that helps: diff –git a/setup.py b/setup.py.patched index 41b8b12..048d2f9 100644 — a/setup.py +++ b/setup.py.a @@ -24,7 +24,6 @@ setup ( ‘templates/data/images/*’ ] }, – zip_ safe = False, install_requires = [ ‘setuptools>=0.6b1’, HTH.
5/10/2020 · Minimal Python setup.py with prerequisites 10 May, 2020. The optional setup.py for setuptools-based Python packages can be reduced to a one-line file for simple Python packages, by putting the project metadata in setup.cfg. The example setup.cfg file below is associated with a setup.py file containing merely:, 1/26/2019 · Zipped eggs don’t play nicely with namespace packaging, and may be implicitly installed by commands like python setup.py install. To prevent this, it is recommended that you set zip_safe=False in setup.py , as we do here.
A basic setup.py file for a Flask application looks like this: from setuptools import setup setup ( name = ‘Your Application’ , version = ‘1.0’ , long_description = __doc__ , packages = [ ‘yourapplication’ ], include_package_data = True , zip_safe = False , install_requires = [ ‘Flask’ ] ), I am unsure whether zip_safe=False is needed in setup.py for reusable apps. Here is my question on StackOverflow: … According to the answer zip_safe=False should be used. The current docs don’t contain this key-value pair in setup.py :