[New-bugs-announce] [issue4646] distutils chokes on empty options arg in the setup function

Thomas Heller report at bugs.python.org
Fri Dec 12 21:15:04 CET 2008


New submission from Thomas Heller <theller at ctypes.org>:

Distutils setup function accepts an 'options' named argument which
allows to pass options to subcommands in a dictionary (At the moment I
cannot find where this is documented).
When an empty dictionary is passed, distutils spits out a warning:

C:\sf\comtypes>py3 setup.py clean
c:\python30\lib\distutils\dist.py:259: UserWarning: Unknown distribution
option: 'options'
  warnings.warn(msg)
running clean
...

I believe the bug is in all versions of Python; since it never has been
fixed (or even found) I'm not sure if it is worth fixing.  However,
patch is attached.

----------
components: Distutils
files: distutils.patch
keywords: patch, patch
messages: 77687
nosy: theller
severity: normal
status: open
title: distutils chokes on empty options arg in the setup function
type: behavior
versions: Python 2.5.3, Python 2.6, Python 2.7, Python 3.0
Added file: http://bugs.python.org/file12334/distutils.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4646>
_______________________________________


More information about the New-bugs-announce mailing list