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?
Here are my manifest files:
MANIFEST.in
-----------
include PyCrust.ico
recursive-include Data *.py *.txt
recursive-include Demos *.py *.txt
recursive-include Docs *.py *.txt
Produces this MANIFEST file:
----------------------------
PyCrust.ico
README.txt
setup.py
.\PyCrust.py
.\PyFilling.py
.\PyShell.py
.\__init__.py
.\crust.py
.\filling.py
.\interpreter.py
.\introspect.py
.\pseudo.py
.\shell.py
.\version.py
Data\PyCrustTutorial.py
Data\PythonTutorial.py
Demos\PyCrustAlaCarte.py
Demos\PyCrustMinimus.py
Docs\CHANGES.txt
Which is used by this setup.py:
-------------------------------
#!/usr/bin/env python
"""Setup file for the distribution of PyCrust. PyCrust is a pure
Python distribution. Thanks to Andy Todd, who created the original
setup.py for PyCrust."""
__author__ = "Patrick K. O'Brien
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!
I will give that a try, Robin. In the mean time, can someone please explain to me the precise purpose of the MANIFEST file? Why would I specify files to include in the distribution, that I didn't actually want installed? This makes no sense to me at all. All the files I want are in the .zip and .tar.gz, and are extracted properly, but only the root directory is actually getting installed by "python setup.py install". If I have to specify everything in the data_files parameter, what does the MANIFEST buy me? --- Patrick K. O'Brien Orbtech (http://www.orbtech.com) "I am, therefore I think." -----Original Message----- From: distutils-sig-admin@python.org [mailto:distutils-sig-admin@python.org]On Behalf Of Robin Dunn Sent: Wednesday, September 12, 2001 1:41 PM To: pobrien@orbtech.com; Distutils Subject: Re: [Distutils] Help - Does wininst ignore MANIFEST?
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! _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Correction, the .zip and .tar.gz files contain everything specified in
MANIFEST, but do not *install* everything that gets unzipped. I have to say,
this has got to be the most frustrating experience I have had yet with
Python.
---
Patrick K. O'Brien
Orbtech (http://www.orbtech.com)
"I am, therefore I think."
-----Original Message-----
From: distutils-sig-admin@python.org
[mailto:distutils-sig-admin@python.org]On Behalf Of Patrick K. O'Brien
Sent: Wednesday, September 12, 2001 12:46 PM
To: Distutils
Subject: [Distutils] Help - Does wininst ignore MANIFEST?
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?
Here are my manifest files:
MANIFEST.in
-----------
include PyCrust.ico
recursive-include Data *.py *.txt
recursive-include Demos *.py *.txt
recursive-include Docs *.py *.txt
Produces this MANIFEST file:
----------------------------
PyCrust.ico
README.txt
setup.py
.\PyCrust.py
.\PyFilling.py
.\PyShell.py
.\__init__.py
.\crust.py
.\filling.py
.\interpreter.py
.\introspect.py
.\pseudo.py
.\shell.py
.\version.py
Data\PyCrustTutorial.py
Data\PythonTutorial.py
Demos\PyCrustAlaCarte.py
Demos\PyCrustMinimus.py
Docs\CHANGES.txt
Which is used by this setup.py:
-------------------------------
#!/usr/bin/env python
"""Setup file for the distribution of PyCrust. PyCrust is a pure
Python distribution. Thanks to Andy Todd, who created the original
setup.py for PyCrust."""
__author__ = "Patrick K. O'Brien
participants (2)
-
Patrick K. O'Brien
-
Robin Dunn