Re: [CentOS] problem regarding rpmbuild : creating rpm for python files

2010-10-23 Thread Markus Falb
On 20.10.10 20:17, saurabh verma wrote:

 And when i try to run rpmbuild -ba command on this spec file , rpmbuild
 tried to optimize the python byte coded files , which i can see from ( i
 guess macros )  + /usr/lib/rpm/brp-python-bytecompile , and fails
 after that .

 http://pastie.org/1236040

 please help me about controlling this behaviour so that I can skip the
 brp-python-bytecompile section .

Instead you could declare pyo files as ghosts, for instance:

%ghost /usr/lib/python2.4/site-packages/punjab/error.pyo

-- 
Best Regards,
Markus Falb

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] problem regarding rpmbuild : creating rpm for python files

2010-10-20 Thread saurabh verma
HI people ,

I am not sure whether this is right mailing list for this question , but i
tried subscribing to redhat rpm list , failed to do so .

I'm facing a issue while creating RPM for python punjab
http://code.stanziq.com/punjab/

I've created a spec file which contains the list of files to packaged

http://pastie.org/1236027

And when i try to run rpmbuild -ba command on this spec file , rpmbuild
tried to optimize the python byte coded files , which i can see from ( i
guess macros )+ /usr/lib/rpm/brp-python-bytecompile , and fails after
that .

http://pastie.org/1236040

please help me about controlling this behaviour so that I can skip the
brp-python-bytecompile section .

Thanks in advance ,
Saurabh Verma
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos