how to make "python install" install source instead of egg file?

I used to run python 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 python
# encoding: utf-8

from setuptools import setup,find_packages

    name = "ipin_rpc_gen_vector",
    version = "0.0.2",
    packages = find_packages("src"),


So what is the difference behind this? When will it install source, when will it just install egg file? How can I force install source instead of egg file?


  • 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

    Also check out and the *_package_data flags (also at: