If all of my __init__.py files are empty, do I have to store them into version control, or is there a way to make distutils create empty __init__.py files during installation?
If all of my __init__.py files are empty, do I have to store them
Share
Is there a reason you want to avoid putting empty
__init__.pyfiles in version control? If you do this you won’t be able toimportyour packages from the source directory wihout first running distutils.If you really want to, I suppose you can create
__init__.pyinsetup.py. It has to be before runningdistutils.setup, sosetupitself is able to find your packages:but… what would you gain from this, compared to having the empty
__init__.pyfiles there in the first place?