[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
when
> 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
subdirectories,
> 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/db_archive.exe",
               "db/bin/db_checkpoint.exe",
               "db/bin/db_deadlock.exe",
               "db/bin/db_dump.exe",
               "db/bin/db_load.exe",
               "db/bin/db_printlog.exe",
               "db/bin/db_recover.exe",
               "db/bin/db_stat.exe",
               "db/bin/db_upgrade.exe",
               "db/bin/db_verify.exe",
               "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!