Skip to content Skip to sidebar Skip to footer

How To Make "python Setup.py Install" Install Source Instead Of Egg File?

I used to run python setup.py install in a python project, it will just move the source to site-packages, but sometimes it will mv an egg file to site-packages? #!/usr/bin/env pyth

Solution 1:

You have to set the zip_safe flag to False if you want to avoid the zip (egg) behaviour.

You can read more about it at https://setuptools.readthedocs.io/en/latest/userguide/miscellaneous.html#setting-the-zip-safe-flag.

Also check out https://setuptools.readthedocs.io/en/latest/userguide/keywords.html#new-and-changed-setup-keywords and the *_package_data flags (also at: https://setuptools.readthedocs.io/en/latest/references/keywords.html).

Post a Comment for "How To Make "python Setup.py Install" Install Source Instead Of Egg File?"