If you do this, you won't be able to have python 2.3 and 2.4 installed along side one another. That is because two versions of the same program can't be installed (except things like kernel).
So requiring 2.3 (or 2.x) means that no other version may co-exist on the system. RedHat has gotten around this in the past by having the version as part of the package name, for example: python-1.5-r.i386.rpm = python 1.5 python2-2.2.1-r.i386.rpm = python 2.2.1 these can coexist because they are different packages. But then when there aren't multiple versions of the same package (in later released distributions), the package name would be: python-2.2.1.i386.rpm = python 2.2.1 Hmm... actually, I just took a moment to look at the Fedora Core 2 test 1 release and it has python-2.3.3-1.i386.rpm with a binaries: /usr/bin/python, /usr/bin/python2, /usr/bin/python2.3... so you could check either way for the dependency, but what about legacy distribution versions, or Mandrake? In short, I don't believe there is any reliable way to do dependency checking across multiple releases and distributions. You're likely to break something between released distribution numbers or alternative distributions (ie. Mandrake). We have been lucky in the past that both RedHat and Mandrake used /usr/bin/python2 as the binary, which was easy enough to check. Perhaps you could require python >= 2, but have a %pre script that runs python and returns an error for < 2.3. This should stop the install I believe. ----- Original Message ----- From: "Tim Rice" <[EMAIL PROTECTED]> To: "Jason R. Mastaler" <[EMAIL PROTECTED]> Cc: "Bernard Johnson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Ron Bickers" <[EMAIL PROTECTED]> Sent: Tuesday, February 10, 2004 10:00 PM Subject: Re: CVS: tmda/contrib tmda.spec,1.91,1.92 > On Tue, 10 Feb 2004, Jason R. Mastaler wrote: > > > Any problems you guys foresee with this change to tmda.spec? > > > > > --- tmda.spec 10 Feb 2004 02:36:53 -0000 1.91 > > > +++ tmda.spec 10 Feb 2004 22:05:41 -0000 1.92 > > > @@ -14,8 +14,8 @@ > > > -BuildRequires: /usr/bin/python2 > > > -Requires: /usr/bin/python2 > > > +BuildRequires: /usr/bin/python2.3 > > > +Requires: /usr/bin/python2.3 > > What happens when 2.4 is released? > How about > BuildRequires: python >= 2.3 > Requires: python >= 2.3 > > > -- > Tim Rice Multitalents (707) 887-1469 > [EMAIL PROTECTED] > > > _________________________________________________ > tmda-workers mailing list ([EMAIL PROTECTED]) > http://tmda.net/lists/listinfo/tmda-workers _________________________________________________ tmda-workers mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-workers
