[Distutils] bdist_rpm fails due to bytecompiled modules
Phillip J. Eby
pje at telecommunity.com
Wed Dec 6 06:13:39 CET 2006
At 11:28 PM 12/5/2006 -0500, Stefan Seefeld wrote:
>Thus, I tried 'python setup.py bdist_rpm --install-script=install',
>where the content of 'install' is
>'python setup.py install --optimize=1 --root=$RPM_BUILD_ROOT
>--record=INSTALLED_FILES',
>and voila ! It works !
A simpler fix is to put:
[install]
optimize=1
in the project's setup.cfg, or perhaps better yet, in ~/.pydistutils.cfg or
in $prefix/lib/python2.x/distutils/distutils.cfg. This will then always
set --optimize=1 when install is invoked.
More information about the Distutils-SIG
mailing list