title: How to include hidden files in python distutils?
body: <p>My package has a hidden directory I want to distribute as package data. I include the following in <code>distutils.setup(...)</code>:</p>
  
  <pre><code>[...]
  package_data={'mypkg': ['.hg/*']},
  [...]
  </code></pre>
  
  <p>However this syntax does not work: when I run <code>python setup.py install</code>, the directory <code>.hg</code> is not included in the package. I believe the problem is in the directory name <code>.hg</code>, because if I replace <code>.hg</code> with <code>hg</code>, then the following will work as expected.</p>
  
  <pre><code>[...]
  package_data={'mypkg': ['hg/*']},
  [...]
  </code></pre>
  
  <p>Unfortunately the directory name has to be <code>.hg</code> for Mercurial to work. Is there a workaround to this issue?</p>