[Distutils] Help - Does wininst ignore MANIFEST?

Robin Dunn robin@alldunn.com
Wed Sep 12 14:42:18 2001

> I just started using distutils, have run into a snag and could really use
> some help. I'm able to create source distributions with no problem. But
> I try to create a windows installer version via:
> C:\Code\PyCrust>python setup.py bdist --formats=wininst
> I get a win32.exe file that does not contain my icon file or
> whereas the .zip and .tar.gz files come out fine. Is this a known problem?
> Or am I doing something wrong?

IIUC, the bdist commands only bundle what would be installed with a "python
setup.py install" command.  I've been able to get other files installed by
using the data_files parameter to the setup function.  For example (edited
from PyBSDDB):

setup(name = 'bsddb3',
    # ... all the other stuff clipped ...

      data_files = [("bsddb3/utils",
               "db/bin/libdb%s.dll" % ver,
             ("bsddb3/test", glob.glob("test/*.py"))

Robin Dunn
Software Craftsman
robin@AllDunn.com       Java give you jitters?
http://wxPython.org      Relax with wxPython!