[Distutils] Question about creating rpms using distutiils

Jeff Pitman symbiont at berlios.de
Tue Nov 2 09:43:29 CET 2004


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


More information about the Distutils-SIG mailing list