[issue1472] setup.py bdist_rpm fails due to missing optimized files
Jeremy Whitlock
mercurial-bugs at selenic.com
Thu Jan 15 22:34:39 UTC 2009
New submission from Jeremy Whitlock <jcscoobyrs at gmail.com>:
While working on building some Mercurial RPMs for RHEL/CentOS, I ran across an
issue with how the "python setup.py bdist_rpm" works. Basically, I tried to run
"python setup.py bdist_rpm" and I kept getting an error:
error: command 'rpmbuild' failed with exit status 1
This error really was due to a nested error higher up in the output of the
bdist_rpm command:
Installed (but unpackaged) file(s) found
After googling around, I found a known bug in the Red Hat Bugzilla database:
https://bugzilla.redhat.com/show_bug.cgi?id=198877
I also found a lot of suggestions to create a setup.cfg with the following in it:
[install]
optimize = 1
The problem is that the setup.cfg had no affect on the issue. I think this is
due to the Mercurial setup.py overriding the options in its setup() call. Upon
testing this, and proving my theory, I have a patch that will fix this.
----------
files: fix_bdist_rpm.patch.txt
messages: 8406
nosy: jcscoobyrs
priority: bug
status: unread
title: setup.py bdist_rpm fails due to missing optimized files
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1472>
____________________________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix_bdist_rpm.patch.txt
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20090115/d45c6ec3/attachment-0002.txt>
More information about the Mercurial-devel
mailing list