Oh, ok.  So is there a way to include data (in a package or not) in my binary distribution?

--Mike
On Apr 30, 2008, at 9:27 AM, Phillip J. Eby wrote:

At 09:15 AM 4/30/2008 -0600, Michael Hearne wrote:
I'm having trouble bundling any kind of data (non-Python code) in my egg.

Here are the file contents of my source directory:
hello.py (cheesy script)
README.txt
MANIFEST.in (has one line, "include *.txt")
setup.py, which looks like:

from setuptools import setup, find_packages

setup(
   name = "HelloWorld",
   version = "0.1",
   scripts=['hello.py'],
   include_package_data = True
)

I'm creating the egg with python setup.py bdist_egg.

I would expect that README.txt should appear in the egg somewhere, but it doesn't.

What am I missing?

README.txt isn't in a package, so it's not "package data".  And MANIFEST.in determines what goes in your *source* distribution, not your binary distribution.




------------------------------------------------------
Michael Hearne
mhearne@usgs.gov
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.
------------------------------------------------------