How do I create a Python egg that will properly pick up all the files and directories in a Python package :?:

I have tried to do this with a "" file (created outside the Python package). Listed below are its contents:

from setuptools import setup, find_packages

    setup(name = "XWF Meta Data",
    version = "1.0",
    description = "Unknown",
    author = "Nobody",
    author_email = "",
    classifiers = ["Development Status :: Alpha/Unstable", "Framework :: Zope 3"],
    packages = find_packages("XWFMetadata"),
    package_dir = {"root": "XWFMetadata"},
    include_package_data = True,
    zip_safe = False

The "XWFMetadata" directory is the Python package. It only contains python files. When I enter in "sudo python install" only the egg info is created and copied over into the Python "site-packages" directory (exists as "XWF_Meta_Data-1.0-py2.5.egg" directory).

Wait so python doesn't automatically get the things you download for it? I'd need to type in some import code to get it to work?

Did you read this documentation ? It seems that you need an EGG-INFO directory. I don't create python eggs, so I can't help you much, but I think reading this is the starting point. If you manage creating your egg, please post the key tricks here :)

The documentation you have referred to is only for people who are contributing to setuptools (it includes a warning at the beginning). An EGG-INFO directory is already created and installed to the site-packages directory (in Python install directory), by the script using the following command:

python install

What is missing is an actual directory (or something else) that contains the Python package that I have created.

This article has been dead for over six months. Start a new discussion instead.