[Distutils] custom egg metadata

Phillip J. Eby pje at telecommunity.com
Mon Jan 8 16:54:34 CET 2007

At 03:11 PM 1/8/2007 +0100, Lutz Pälike wrote:
>   There appears no definition of xyz_settings.txt ?
>   Am i missing something here ?

Your custom writer has to be on sys.path in order to work, but your 
package_dir isn't on sys.path.

You'll have to either install the writer as a separate egg and use 
setup_requires to ensure it gets on the path, or else move your package_dir 
to the setup.py directory.

The general intention of the design, however, was for egg_info writers to 
live in a different egg than the one being built, and to be activated using 

Still, you *can* make it work, it's just that you'll have to run the 
egg_info command (or a command that runs egg_info) more than once in order 
to get your custom metadata written, because the first time the egg_info is 
written, your entry points won't be on disk yet.  The second time, it will.

More information about the Distutils-SIG mailing list