[PATCH 11 of 22] buildrpm: introduce --withpython for building rpms that includes Python 2.7

Simon King simon at simonking.org.uk
Tue May 20 04:04:30 CDT 2014


On Tue, May 20, 2014 at 10:00 AM, Simon King <simon at simonking.org.uk> wrote:
> On Tue, May 20, 2014 at 3:10 AM, Mads Kiilerich <mads at kiilerich.com> wrote:
>> # HG changeset patch
>> # User Mads Kiilerich <madski at unity3d.com>
>> # Date 1400111411 -7200
>> #      Thu May 15 01:50:11 2014 +0200
>> # Node ID b71a9c09bdc9b2a04679a34e0ef0765ffbbbb933
>> # Parent  528a57d3359489b137301ffca0e125cc1c0a84c3
>> buildrpm: introduce --withpython for building rpms that includes Python 2.7
>>
>> Also available as "make rpm-py".
>>
>> diff --git a/contrib/buildrpm b/contrib/buildrpm
>> --- a/contrib/buildrpm
>> +++ b/contrib/buildrpm
>> @@ -27,6 +27,10 @@ while [ "$1" ]; do
>>          SUFFIX="$1"
>>          shift
>>          ;;
>> +    --withpython )
>> +        shift
>> +        PYTHONVER=2.7.6
>> +        ;;
>
> I'm not at all familiar with building RPMs, but should that be "$1",
> or does it intentionally only work for a single Python version?
>

Sorry, I read more carefully and realised you are downloading and
building the latest python release, not reusing the version installed
on the system. Ignore me :-)

Simon


More information about the Mercurial-devel mailing list