[Distutils] Trouble with bdist_rpm and data_files

Lucas Kannebley Tavares lucaskt at linux.vnet.ibm.com
Fri Apr 8 17:10:11 CEST 2011

On 04/08/2011 10:57 AM, Lucas Kannebley Tavares wrote:
> Hello all,
> I wrote a setup.py file and managed to get debhelper to create a working
> deb package out of it. But I am having trouble with creating a binary
> rpm package. Apparently all data files are not found by rpmbuild.
> running install_data
> error: can't copy 'etc/proj.conf': doesn't exist or not a regular file
> error: Bad exit status from /var/tmp/rpm-tmp.drqkKR (%install)
> (I changed the file name for proj.conf in the e-mail as to not divoulge
> any corporate information)
> But that file does indeed exist. It is at etc/file.conf in the repo, and
> it should be moved to /etc/proj/cli/proj.conf
> The BUILDROOT/etc/proj/cli directory is properly created.
> There are other data files listed, but none of them are copied properly,
> even if I change their order.
> Any help on this would be appreciated.
> Thank you.

Problem solved.
I was missing a proper MANIFEST file.
Thank you for you time.

Lucas Kannebley Tavares
Infrastructure Team
IBM Linux Technology Center

More information about the Distutils-SIG mailing list