Hi Andrea: I think I have a working implementation which will check to see if the system is SuSE, if so, add the BuildRequires to be python-xml, otherwise, use PyXML. I just wanted to make sure that PyXML is sufficient for what we need. Can you give me something to test on my Red Hat system?
Thanks, Bernard > -----Original Message----- > From: Andrea Righi [mailto:[EMAIL PROTECTED] > Sent: Friday, March 17, 2006 5:58 > To: Bernard Li > Cc: sisuite-devel@lists.sourceforge.net > Subject: Re: [Sisuite-devel] python-xml in systemimager.spec (trunk) > > Bernard Li wrote: > > Andrea: > > > > Red Hat/Fedora does not provide python-xml RPM, what > subrountines do you > > need from this package and is it the same as PyXML for Red > Hat/Fedora? > > > > It is unfortunate that for RPM, Python does not have a > similar requires > > like Perl, where you can do something like require > Perl(XML::Simple). > > > > Thanks, > > > > Bernard > > Unfortunately it's very hard to detect python modules... we could > explicitly set a requirement on the path: > > BuildRequires: python, python-devel, > %{_libdir}/python/site-packages/xml > > but also that doesn't work, since this is valid for RH > only... SuSE puts > the module under %{_libdir}/python/xml... > > Is there a way to implement this check with a %pre section? > in this way > should be easy to check it directly with the python interpreter... > > -Andrea > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Sisuite-devel mailing list Sisuite-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sisuite-devel