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 <rep...@bugs.python.org> <http://bugs.python.org/issue29442> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com