[New-bugs-announce] [issue29442] Use argparse and drop dirty optparse hacks in setup.py

Chi Hsuan Yen report at bugs.python.org
Sat Feb 4 02:26:28 EST 2017


New submission from Chi Hsuan Yen:

The change is clear and self-explained. See the patch.

Motivations:

1. The hack "To prevent optparse from raising an exception..." works for single letter flags (-I, -L, etc.) only. I plan to add --sysroot related codes for Android builds and I don't want more hacks. Apparently argparse does not need this hack as it can parse all known flags before throwing an error
2. optparse is deprecated

Add the developer that introduced this hack. Also Serhiy, who sseems interested in removing optparse from the code base. (issue18973, issue18971)

----------
components: Build
files: setup-argparse.patch
keywords: patch
messages: 286922
nosy: Chi Hsuan Yen, brett.cannon, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Use argparse and drop dirty optparse hacks in setup.py
type: enhancement
versions: Python 3.7
Added file: http://bugs.python.org/file46511/setup-argparse.patch

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


More information about the New-bugs-announce mailing list