Erik Blankinship wrote:
Unfortunately, none of the gfx are transfered over. However, if I
modify my setup.py as follows:
from setuptools import find_packages
pkgs = find_packages( )
data_files=[ ('SunnyApp/gfx', ['gfx/sun_1.png',
['gfx/core/core_1.png', 'gfx/core/core_2.png'] ) ],
Only those files that I list make it into the rpm (in this case
sun_1.png, sun_2.png, core_1.png, core_2.png) Unfortunately, there does
not appear to be a way to include *.png for all subdirectories in gfx.
Is there a way to include lots of files with a pattern when calling
rpmbuild? I am not sure how to use package_data to list wildcards
because of how I am using packages=find_packages( )
Any suggestions? Thanks much.
Since it's setuptools-based project use include_package_data=True.
This is documented at