title: Including non-python files in a python package
body: <p>I created and published a Python package, but I just can't get it to include a text file.</p>
  
  <p>Here is the repository: <a href="https://github.com/void4/gimpscm" rel="nofollow noreferrer">https://github.com/void4/gimpscm</a></p>
  
  <p>The file I need to include is procdump.txt, located in the gimpscm-directory.</p>
  
  <p>So the layout is like this:</p>
  
  <pre><code>setup.py
  setup.cfg
  MANIFEST.in
  gimpscm/
         /__index__.py
         /procdump.txt
         /(other .py files)
  </code></pre>
  
  <p>I tried:</p>
  
  <ul>
  <li>including a package_data directive in setup.py</li>
  <li>various MANIFEST.in directives</li>
  </ul>
  
  <p>The current setup.py includes:</p>
  
  <pre><code>  package_data = {"gimpscm": ["gimpscm/procdump.txt"]},
    include_package_data=True,
  </code></pre>
  
  <p>And MANIFEST.in contains:</p>
  
  <pre><code>recursive-include gimpscm *.txt
  </code></pre>
  
  <p>The txt file is included like the .py files in the gimpscm subdirectory of the zip in the dist directory. But when I <code>pip install gimpscm</code>, the file simply isn't installed.</p>
  
  <p>I publish the package this way:</p>
  
  <pre class="lang-sh prettyprint-override"><code>python setup.py sdist
  twine upload dist/*
  </code></pre>
  
  <p>On the pypi website, the uploaded package DOES include the txt file, it just isn't included on the <code>pip install</code>.</p>
  
  <p>This process so far has been extremely frustrating, and Stackoverflow and other sites do not give a clear answer. I've tried both the MANIFEST.in and setup.py directive approaches, in every combination. It still doesn't work. The Python docs are also too convoluted and unclear for me.</p>