6 Dec
2006
6 Dec
'06
5:13 a.m.
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.