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.

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to