[New-bugs-announce] [issue13180] pysetup silently ignores invalid entries in setup.cfg

Paul Moore report at bugs.python.org
Fri Oct 14 19:47:19 CEST 2011


New submission from Paul Moore <p.f.moore at gmail.com>:

With a simple setup.cfg defining a distribution containing a single Python module, if you misspell the "modules" keyword (say, as "module") then pysetup does nothing without reporting the error.

This silent failure is very hard to debug, and even if pysetup is ignoring unknown items by design, it should at a minimum report ignored items and probably try to warn on common misspellings like this one.

PS D:\Data\python-sample\python> type .\setup.cfg
[metadata]
name = hello
version = 0.1
author = Paul Moore
author-email = p.f.moore at gmail.com
summary = Test Python module

[files]
module = hello
PS D:\Data\python-sample\python> pysetup run build
running build
PS D:\Data\python-sample\python> dir


    Directory: D:\Data\python-sample\python


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---        13/10/2011     19:46         42 hello.py
-a---        14/10/2011     18:42        155 setup.cfg

(No build directory created!)

----------
assignee: tarek
components: Distutils2
messages: 145552
nosy: alexis, eric.araujo, pmoore, tarek
priority: normal
severity: normal
status: open
title: pysetup silently ignores invalid entries in setup.cfg
type: behavior
versions: Python 3.3

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


More information about the New-bugs-announce mailing list