New submission from Paul Moore <p.f.mo...@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.mo...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13180>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to