[Distutils] Re: [Twisted-Python] including plugins.tml in a package

Abe Fettig abe at fettig.net
Mon Aug 16 19:21:10 MDT 2004


Thanks, Fred, that's good to know!

Fred L. Drake, Jr. wrote:

> Things are better in Python 2.4.  ;-)  You'll be able to spell out a set of 
> files that should be installed into your package directly in setup.py.  For 
> instance, if you're distributing the pakcage "pkg" and it includes a file 
> "plugins.html" that should be in the package directory, you can use:
> 
> setup(packages=["pkg"],
>       package_data={"pkg": ["pkg/plugins.html"]},
>       ...)
> 
> If you want to do this without waiting for Python 2.4, you can use Phillip 
> Eby's setuptools package.  This can be found in the Python CVS tree at 
> nondist/sandbox/setuptools/.  Very cool.
> 
> 
>   -Fred
> 





More information about the Twisted-Python mailing list