Nick Sloan added the comment:

My thought was that perhaps there will be other circumstances where we may want 
to ignore options in the future. The idea was that by providing an 
ignore_options list that can be extended, multiple conditions with different 
sets of options can be stacked together easily. I was thinking a set might 
actually be an even better choice than a list.

Would love feedback on this approach. Am I over-designing for an unlikely case? 
I'm happy to use Vinay's suggestion if we don't think it is worth it to 
consider possible future conflicts with distutils.cfg options. If there is any 
reason a set would be worse to use, let me know, otherwise my next patch will 
use a set rather than a list.

Another question: should I be checking which config file these come from, or 
ignoring all occurrences of these options? Seems like setup.cfg at the very 
least shouldn't have any restrictions. Possibly ~/.pydistutils.cfg too.

I'll review tests to see if this necessitates any changes, add a new test that 
covers this, and I'll make a note in the docs.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17732>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to