[Distutils] Question about creating rpms using distutiils

Steve lonetwin at gmail.com
Thu Nov 4 11:54:27 CET 2004


Thanks Jeff, Mark for your replies. I guess I'll hack something up pon
my own, like Jeff suggested.
      BTW, Yes I am aware that distributing the pyc's are like
distributing the source code ...but well, try and explain that to my
PHB <sigh>

dammit jim, I'm a coder, not a suit. :o)

Regards
Steve

On Tue, 2 Nov 2004 16:43:29 +0800, Jeff Pitman <symbiont at berlios.de> wrote:
> On Monday 01 November 2004 23:26, Steve wrote:
> >   Could someone please explain (with possibly and example) how to
> > build a pure-pyc-only binary rpm ??
> 
> Hack this in a wrapper script or something:
> 
> In %install, after setup.py install --record=INSTALLED_FILES:
> 
> sed 's/.*\.py$//' < INSTALLED_FILES >BINARY_FILES
> 
> grep ".py$" INSTALLED_FILES >nukeit.tmp
> for f in `cat nukeit.tmp`; do
>         rm -f $f
> done
> 
> Then change %files:
> 
> %files -f BINARY_FILES
> 
> But, then again, distributing pyc is distributing the code too! (The
> bytecode)
> 
> have fun,
> --
> -jeff
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>


More information about the Distutils-SIG mailing list