This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dmalcolm
Recipients dmalcolm, eric.araujo, georg.brandl, ncoghlan, pitrou, python-dev, rosslagerwall, tarek
Date 2012-06-25.19:07:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340651278.32.0.838769664289.issue14443@psf.upfronthosting.co.za>
In-reply-to
Content
The approach Nick suggests seems reasonable, but rpm.expandMacro isn't usable: there's no guarantee that the machine has Python bindings for rpm installed (especially not for the version of Python that we've just built).

However, we can get at the macro by shelling out to the "rpm" command:
   subprocess.getoutput('rpm --eval %{__os_install_post}')

I'm attaching a patch which does this; works on my RHEL 6.3 test box.
History
Date User Action Args
2012-06-25 19:07:58dmalcolmsetrecipients: + dmalcolm, georg.brandl, ncoghlan, pitrou, tarek, eric.araujo, rosslagerwall, python-dev
2012-06-25 19:07:58dmalcolmsetmessageid: <1340651278.32.0.838769664289.issue14443@psf.upfronthosting.co.za>
2012-06-25 19:07:57dmalcolmlinkissue14443 messages
2012-06-25 19:07:57dmalcolmcreate