title: PyInstaller does not include dependency file
body: <p>I'm trying to create an use PyInstaller in my <a href="https://github.com/AJahJahRiddim/md-edit" rel="nofollow">project</a>.</p>
  
  <p>This project uses weasyprint but when I run pyinstaller, it fails because weasyprint's resource files seems not being installed.</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;string&gt;", line 20, in &lt;module&gt;
    File "&lt;frozen importlib._bootstrap&gt;", line 2214, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 2203, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 1191, in _load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 1161, in _load_backward_compatible
    File "/usr/local/lib/python3.4/dist-packages/PyInstaller-3.0dev_be553f0-py3.4.egg/PyInstaller/loader/pyi_importers.py", line 302, in load_module
      exec(bytecode, module.__dict__)
    File "/usr/local/lib/python3.4/dist-packages/mdedit-1.0.1-py3.4.egg/mdedit/editor/mdeditor.py", line 13, in &lt;module&gt;
      from mdedit.generator import *
    File "&lt;frozen importlib._bootstrap&gt;", line 2214, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 2203, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 1191, in _load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 1161, in _load_backward_compatible
    File "/usr/local/lib/python3.4/dist-packages/PyInstaller-3.0dev_be553f0-py3.4.egg/PyInstaller/loader/pyi_importers.py", line 302, in load_module
      exec(bytecode, module.__dict__)
    File "/usr/local/lib/python3.4/dist-packages/mdedit-1.0.1-py3.4.egg/mdedit/generator.py", line 13, in &lt;module&gt;
      from weasyprint import HTML, CSS
    File "&lt;frozen importlib._bootstrap&gt;", line 2214, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 2203, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 1191, in _load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 1161, in _load_backward_compatible
    File "/usr/local/lib/python3.4/dist-packages/PyInstaller-3.0dev_be553f0-py3.4.egg/PyInstaller/loader/pyi_importers.py", line 302, in load_module
      exec(bytecode, module.__dict__)
    File "/usr/local/lib/python3.4/dist-packages/weasyprint/__init__.py", line 337, in &lt;module&gt;
      from .html import find_base_url, HTML5_UA_STYLESHEET, get_html_metadata
    File "&lt;frozen importlib._bootstrap&gt;", line 2214, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 2203, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 1191, in _load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 1161, in _load_backward_compatible
    File "/usr/local/lib/python3.4/dist-packages/PyInstaller-3.0dev_be553f0-py3.4.egg/PyInstaller/loader/pyi_importers.py", line 302, in load_module
      exec(bytecode, module.__dict__)
    File "/usr/local/lib/python3.4/dist-packages/weasyprint/html.py", line 37, in &lt;module&gt;
      filename=os.path.join(os.path.dirname(__file__), 'css', 'html5_ua.css'))
    File "/usr/local/lib/python3.4/dist-packages/weasyprint/__init__.py", line 223, in __init__
      with result as (source_type, source, base_url, protocol_encoding):
    File "/usr/lib/python3.4/contextlib.py", line 59, in __enter__
      return next(self.gen)
    File "/usr/local/lib/python3.4/dist-packages/weasyprint/__init__.py", line 294, in _select_source
      with open(filename, 'rb') as file_obj:
  FileNotFoundError: [Errno 2] No such file or directory: '/home/sylvain/git/md-edit/dist/MdEditor/weasyprint/css/html5_ua.css'
  </code></pre>
  
  <p>Is there a way to force pyinstaller including this file ?</p>
  
  <p>Shall I include it by myself ?</p>
  
  <p>Command : <code>pyinstaller mainwindow.spec</code></p>
  
  <p>mainwindow.spec :</p>
  
  <pre><code># -*- mode: python -*-
  a = Analysis(['mdedit/mainwindow.py'],
               pathex=['/home/sylvain/git/md-edit'],
               hiddenimports=[],
               hookspath=None,
               runtime_hooks=None)
  pyz = PYZ(a.pure)
  exe = EXE(pyz,
            a.scripts,
            exclude_binaries=True,
            name='mainwindow',
            debug=False,
            strip=None,
            upx=True,
            console=True )
  coll = COLLECT(exe,
                 a.binaries,
                 a.zipfiles,
                 a.datas,
                 strip=None,
                 upx=True,
                 name='MdEditor')
  </code></pre>
  
  <p>Thanks in advance.</p>