title: Making a python package for PIP with some data_files
body: <p>I'm doing a project with this layout:</p>
  
  <pre><code>project/
      bin/
          my_bin.py
      CHANGES.txt
      docs/
      LICENSE.txt
      README.txt
      MANIFEST.in
      setup.py
      project/
          __init__.py
          some_thing.py
          default_data.json
          other_datas/
              default/
                  other_default_datas.json
  </code></pre>
  
  <p>And the problem is that when I install this using pip, it puts the <strong>"default_data.json"</strong> and the <strong>"other_datas"</strong> folder not in the same place as the rest of the app.</p>
  
  <p>How am I supposed to do to make them be in the same place?</p>
  
  <p>They end up on <strong>"/home/user/.virtualenvs/proj-env/project"</strong></p>
  
  <p>instead of <strong>"/home/user/.virtualenvs/proj-env/lib/python2.6/site-packages/project"</strong></p>
  
  <p>In the setup.py I'm doing it like this:</p>
  
  <pre><code>inside_dir = 'project'
  data_folder= os.path.join(inside_dir,'other_datas')
  
  data_files = [(inside_dir, [os.path.join(inside_dir,'default_data.json')])]
  for dirpath, dirnames, filenames in os.walk(data_folder):
      data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
  </code></pre>