rfc: python2.7 for F14
David Malcolm
dmalcolm at redhat.com
Thu Jun 24 20:48:55 UTC 2010
On Wed, 2010-06-23 at 00:57 -0400, James Antill wrote:
> On Tue, 2010-06-22 at 23:26 +0200, Thomas Spura wrote:
>
> > How about this?
> > """
> > import os
> >
> > p = set()
> >
> > for pkg in os.popen('repoquery --whatrequires --alldeps "python(abi) =
> > 2.6"'):
> > pkg = pkg.strip()
> > print "Checking %s" % pkg
> > p.add(os.popen('repoquery -s %s' % pkg).read().strip())
> >
> > print p
> > """
>
> Wow, python calling python through /bin/sh! I bow before you sir.
> You could just do:
>
> #! /bin/sh
>
> repoquery --whatrequires --alldeps -s "python(abi) = 2.6" | sort -u
Thanks guys. I've added James' script to the feature page.
I have an src.rpm that builds:
http://dmalcolm.fedorapeople.org/python-packaging/python-2.7-0.1.rc2.fc14.src.rpm
There's a successful scratch build here:
http://koji.fedoraproject.org/koji/taskinfo?taskID=2271138
I haven't tested it yet; am about to try it on a rawhide VM. Help with
testing would be most welcome! I wrote some thoughts on how to do this
here:
https://fedoraproject.org/wiki/Features/Python_2.7#How_To_Test
Dave
More information about the devel
mailing list