[issue29442] Use argparse and drop dirty optparse hacks in setup.py
Stefan Krah
report at bugs.python.org
Mon Feb 13 10:09:41 EST 2017
Stefan Krah added the comment:
On Mon, Feb 13, 2017 at 03:04:09PM +0000, Chi Hsuan Yen wrote:
>
> Chi Hsuan Yen added the comment:
>
> I have used my old patch several days on Android, and it seems quite fine. Anyway that's not important anymore.
I find that very surprising:
./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Traceback (most recent call last):
File "./setup.py", line 4, in <module>
import sys, os, importlib.machinery, re, argparse
File "/home/stefan/althome/pydev/commit-master-LATEST/Lib/argparse.py", line 93, in <module>
from gettext import gettext as _, ngettext
File "/home/stefan/althome/pydev/commit-master-LATEST/Lib/gettext.py", line 49, in <module>
import locale, copy, io, os, re, struct, sys
File "/home/stefan/althome/pydev/commit-master-LATEST/Lib/struct.py", line 13, in <module>
from _struct import *
ModuleNotFoundError: No module named '_struct'
Yes, it is important, because you called the original a "dirty hack", which
some core devs do not appreciate.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29442>
_______________________________________
More information about the Python-bugs-list
mailing list