[Python-bugs-list] [ python-Bugs-517451 ] Option processing in setup.cfg

noreply@sourceforge.net noreply@sourceforge.net
Thu, 14 Feb 2002 03:33:33 -0800


Bugs item #517451, was opened at 2002-02-14 03:33
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=517451&group_id=5470

Category: Distutils
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Konrad Hinsen (hinsen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Option processing in setup.cfg

Initial Comment:
When building RPM files with distutils, I noticed that adding "use_rpm_opt_flags=0" to the file setup.cfg had no effect, although the equivalent command-line option --no-rpm-opt-flags works as advertised.

Some debugging showed the reason: in the first case, the variable self.use_rpm_opt_flags in commands/bdist_rpm.py has the value '0' (string), whereas in the second case it is 0 (integer). The test "if self.use_rpm_opt_flags" does not work as expected if the variable is a string, of course.

I suppose that individual commands should not have to worry about the data type of binary options, so I suspect this is a general bug in distutils option processing.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=517451&group_id=5470