Mailinglist Archive: opensuse-packaging (250 mails)

< Previous Next >
Re: [opensuse-packaging] python modules as noarch
  • From: Pavol Rusnak <prusnak@xxxxxxx>
  • Date: Tue, 11 Aug 2009 20:32:23 +0200
  • Message-id: <4A81B937.7000309@xxxxxxx>
Vincent Untz wrote:
Le mardi 11 août 2009, à 14:32 +0200, Pavol Rusnak a écrit :
Hans-Peter Jansen wrote:
Sorry, didn't checked, since there are other problems lurking. Watch this

I've turned the check around for now, since coolo started using the new
macros without providing compatibility code for the older builds...

%if %suse_version <= 1110
#define the new macros for the old distributions
I think that's the correct approach. The macro definitions are available
here: . But instead of patching thousands of
python packages all over the OBS, can't we add the definitions into
prjconf of openSUSE:{10.3,11.0,11.1} and SLE:{10,11}? What do you think?

It means that somebody building the package outside of the build service
will see a failure, so not perfect :/

Right :-( So the correct way how to handle this situation is to use this
at the beginning of the each spec:

%if 0%{?suse_version} < 1120
%define python_sitelib %py_sitedir
%define python_sitearch %py_sitedir

(not needed macro could be omitted). Do all agree?


Best Regards / S pozdravom,

openSUSE Community Multiplier Team Lihovarska 1060/12
PGP 0xA6917144 19000 Praha 9, CR
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >