python - Can distutils create empty __init__.py files? -


if of __init__.py files empty, have store them version control, or there way make distutils create empty __init__.py files during installation?

is there reason want avoid putting empty __init__.py files in version control? if won't able import packages source directory wihout first running distutils.

if want to, suppose can create __init__.py in setup.py. has before running distutils.setup, setup able find packages:

from distutils import setup import os  path in [my_package_directories]:     filename = os.path.join(pagh, '__init__.py')     if not os.path.exists(filename):         init = open(filename, 'w')         init.close()  setup( ... ) 

but... gain this, compared having empty __init__.py files there in first place?


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -