[Distutils] copy binaries in egg

Andrea Crotti andrea.crotti.0 at gmail.com
Tue Mar 27 18:29:52 CEST 2012

On 03/26/2012 08:22 PM, PJ Eby wrote:
> On Mon, Mar 26, 2012 at 11:39 AM, Andrea Crotti 
> <andrea.crotti.0 at gmail.com <mailto:andrea.crotti.0 at gmail.com>> wrote:
>     Suppose for example I need to include a simple png, apparently I
>     have to do this crazy dance
>          include_package_data=True,
>          packages=find_packages(),
>          package_data={'data': ['xyz.png']},
>     and even if data/*png is in MANIFEST.in
>     Isn't there a way to let bdist_egg package also everything found
>     through the MANIFEST.in?
> That's what include_package_data does.  You don't need to have both 
> 'include_package_data' and 'package_data={}', because the former is a 
> replacement for the latter that autodetects based on either 
> MANIFEST.in or source control.  As long as the file is inside a 
> package and is listed either in the manifest or the source control 
> system, it'll get included.

Great thanks for the answer, I missed that bit..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20120327/4a11b04f/attachment.html>

More information about the Distutils-SIG mailing list