[Distutils] Option question

Konrad Hinsen hinsen@cnrs-orleans.fr
Thu Feb 14 06:07:01 2002


> I suggest you take the debugger and skip to the end of 
> finalize_options() in bdist_rpm.py. I don't see any magic in
> that routine which would reset .use_rpm_opt_flags, so the
> magic has to be built into some other part of distutils ;-)
> 
> What Thomas suggest *should* work. If it doesn't, then
> something is wrong and we have a bug.

I think so... Here's what happens. When I specify the option
--no-rpm-opt-flags on the command line, the value of
self.use_rpm_opt_flags in the bdist_rpm code is the integer 0.
When I set use_rpm_opt_flags=0 in setup.cfg, the value becomes
the string '0'. For the subsequent test "if self.use_rpm_opt_flags",
that makes a big difference.

I'll file a bug report about this.

Konrad.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                            | E-Mail: hinsen@cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24
Rue Charles Sadron                       | Fax:  +33-2.38.63.15.17
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais
-------------------------------------------------------------------------------