[Distutils] Automatic RPM dependencies based on egg metadata

Manuel Amador (Rudd-O) rudd-o at rudd-o.com
Fri Mar 13 09:39:48 CET 2009


Based on my earlier work, it brings me much pleasure to contribute the 
attached patch (which requires the earlier, lexicographical-order patch to be 
applied first).  The following attached file makes distutils automatically add 
dependencies to the Requires: field in the RPM spec file, if the egg metadata 
specifies any primary dependency.

With this patch, it is no longer needed to manually specify your dependencies 
in both setup.cfg and requires.txt.  DRY FTW!

regards,
-- 

	Manuel Amador (Rudd-O) <rudd-o at rudd-o.com>
	Rudd-O.com - http://rudd-o.com/
	GPG key ID 0xC8D28B92 at http://wwwkeys.pgp.net/

Some people have a way about them that seems to say: "If I have
only one life to live, let me live it as a jerk."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090313/a0af5689/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-2.4-distutils-bdist_rpm-autodeps.patch
Type: text/x-patch
Size: 3152 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090313/a0af5689/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090313/a0af5689/attachment.pgp>


More information about the Distutils-SIG mailing list