[issue10496] Python startup should not require passwd entry

2017-09-18 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <https://bugs.python.org/issue10496> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29708] support reproducible Python builds

2017-03-04 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue29708> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-03-04 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I've just tried with the latest git-master. With NDK r13b and my build scripts, [1] test_curses passed. shell@ASUS_Z00E_2:/data/local/tmp $ python3.7m -m test test_curses -u curses Run tests sequentially 0:00:00 [1/1] test_curses 1 test OK. Total dur

[issue29779] New environment variable PYTHONHISTORY

2017-03-12 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue29779> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29779] New environment variable PYTHONHISTORY

2017-03-12 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: That's a great feature! Here's a question: what should be CPython's behavior when PYTHONHISTORY is explicitly set to empty? Currently there's an error: $ PYTHONHISTORY= ./python Python 3.7.0a0 (master:f6595983e08fe20cf06a2535d74d912c6dbb04

[issue28491] Remove bundled libffi for OSX

2017-03-15 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Update: my pull request at https://github.com/libffi/libffi/pull/288 is merged. Future libffi releases don't need pkg-config anymore. However, I guess the system copy won't be updated in near future. --

[issue29442] Replace optparse with argparse in setup.py

2017-04-22 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I guess you were asking whether the newly compiled Python binary is able to build extension modules or not? I rebased PR 139 against the latest git master and seems it's fine. Running `make distclean`, `./configure` and then `make` builds all modul

[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-04-24 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue29804> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29442] Replace optparse with argparse in setup.py

2017-09-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Thanks to Serhiy Storchaka's work in issue 30152, this patch can be simplified. I've rebased my branch and updated the pull request. -- ___ Python tracker <https://bugs.python.o

[issue31605] meta issue: bugs.python.org search shows only issues with recent activity

2017-09-27 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: IIRC bugs of bugs.python.org should go to http://psf.upfronthosting.co.za/roundup/meta/ -- nosy: +Chi Hsuan Yen ___ Python tracker <https://bugs.python.org/issue31

[issue31710] setup.py: _ctypes won't getbuilt when system ffi is only in $PREFIX

2017-10-05 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > even if cflags/ldflags are ok Might be this. setup.py doesn't use -I flags in $CFLAGS. It looks into $CPPFLAGS only. -- ___ Python tracker <https://bugs.python.org

[issue31769] configure includes user CFLAGS when detecting pthreads support

2017-10-12 Thread Chi Hsuan Yen
Change by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <https://bugs.python.org/issue31769> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31813] python -m enshure pip stucks

2017-10-18 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Might be caused by this bug: https://github.com/pypa/pip/issues/3532 pip uses lockfile, and lockfile uses hard links, which are prohibited on newer Android versions unless you're root. A workaround is configuring python with |./configure --without-ensu

[issue31916] ensurepip not honoring value of $(DESTDIR) - pip not installed

2017-10-31 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: This is a pip bug https://github.com/pypa/pip/issues/3063 -- nosy: +Chi Hsuan Yen ___ Python tracker <https://bugs.python.org/issue31

[issue26467] Add async magic method support to unittest.mock.Mock

2017-11-04 Thread Chi Hsuan Yen
Change by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <https://bugs.python.org/issue26467> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29556] Remove unused #include

2017-11-24 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: As https://github.com/python/cpython/pull/98 is merged, this issue is fixed. Thanks haypo for the review! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracke

[issue32401] No module named '_ctypes'

2017-12-21 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Most likely the same issue as issue31652. Passing --without-ensurepip to ./configure is a workaround. -- nosy: +Chi Hsuan Yen ___ Python tracker <https://bugs.python.org/issue32

[issue32484] ImportError for gdbm 1.14

2018-01-02 Thread Chi Hsuan Yen
Change by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <https://bugs.python.org/issue32484> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32484] ImportError for gdbm 1.14

2018-01-02 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I can confirm a rebuild fixes _gdbm for Python 3.6.4. This is also a bug in gdbm - it should bump soname (gdbm.so.4 => gdbm.so.5) for such an ABI incompatibility. I've sent a report to gdbm de

[issue28833] cross compilation of third-party extension modules

2016-12-01 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Well, cross compiling extension modules already works fine... $ _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_m_linux_aarch64-linux-android PYTHONHOME=~/Projects/python3-android/build/21-aarch64-linux-android-4.9/usr python3.7 setup.py build_ext running build_ext

[issue28833] cross compilation of third-party extension modules

2016-12-01 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I know. I guess it can be determined without manually specifying but haven't investigated into details. Maybe some patches are necessary. -- ___ Python tracker <http://bugs.python.org/is

[issue28849] do not define sys.implementation._multiarch on Android

2016-12-01 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Actually all UNIX-like platforms now have non-empty sys.implementation._multiarch now (msg273875). An idea is renaming it to something like target_architecture to make things clearer. It will be a triplet on all system, whether cross-built or not

[issue28740] Add sys.getandroidapilevel()

2016-12-01 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: How about renaming sys.implementation._multiarch to sys.implementation.target_architecture and make it public? sys.androidapilevel() sounds too specific to me. -- ___ Python tracker <http://bugs.python.

[issue28740] Add sys.getandroidapilevel()

2016-12-01 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Sorry for mixing different issues and proposing bad alternatives. My last hope is that someone looks into lemburg's msg281253: "I don't think the sys module is the right place to put the API, since it doesn't have anything to do wi

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-04 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Patch version 3, using sys.getandroidapilevel() -- Added file: http://bugs.python.org/file45751/android-locale-utf8.patch ___ Python tracker <http://bugs.python.org/issue28

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-04 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Thanks Victor. Here's new patch, which uses hasattr -- Added file: http://bugs.python.org/file45759/android-locale-utf8.patch ___ Python tracker <http://bugs.python.org/is

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-07 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Patch version 5, updated comments. Thanks for all of those feedbacks :) -- Added file: http://bugs.python.org/file45785/android-locale-utf8.patch ___ Python tracker <http://bugs.python.org/issue28

[issue20211] setup.py: do not add invalid header locations

2016-12-07 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Got the same issue here on building Python for Android. See https://circleci.com/gh/yan12125/python3-android/11 for an example build log. /usr/include is erroneously included and leads to build failures: building 'xxlimited' extension /home/ubuntu/a

[issue20211] setup.py: do not add system header locations when cross compiling

2016-12-07 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Modified this issue a bit and add some experts on the build system -- nosy: +zach.ware title: setup.py: do not add invalid header locations -> setup.py: do not add system header locations when cross compiling versions: +Python 3.5, Python 3.6, Pyt

[issue20211] setup.py: do not add system header locations when cross compiling

2016-12-07 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +xdegaye ___ Python tracker <http://bugs.python.org/issue20211> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28190] Detect curses headers correctly for cross-compiling

2016-12-07 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: A clean patch without changes in ./configure. autoreconf necessary -- Added file: http://bugs.python.org/file45790/ncurses-headers.patch ___ Python tracker <http://bugs.python.org/issue28

[issue28190] Detect curses headers correctly for cross-compiling

2016-12-09 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > second issue is that you apparently don't do the changes for term.h term.h is included only if ncurses is missing and the system (SysV) curses is used, so I didn't change it. See below: #ifdef __sgi #include #endif #ifdef HAVE_NCURSES_H #i

[issue28190] Detect curses headers correctly for cross-compiling

2016-12-09 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > The only change that is needed here is to not include /usr/include/ncursesw > in setup.py when cross compiling No. Lots of codes in _cursesmodule.c need to know whether it's ncursesw, ncurses, or SysV's curses. For example: (segments below ar

[issue20211] setup.py: do not add system header locations when cross compiling

2016-12-10 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: xdegaye's explanation is incorrect. The actual scene is much more complicated. First, let me explain why things may be broken. The wrong directory is included only if all of the following conditions are met: 1. PYTHON_FOR_BUILD is not installed with --p

[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2016-12-10 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: @xdegaye: no-path-to-ncursesw.patch fixes a problem yet introducing a new one. With that patch auto-detection of ncurses include files are broken. Now users have to specify the path manually even for native builds

[issue28190] Cross-build _curses failed if host ncurses headers and target ncurses headers have different layouts

2016-12-11 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Sorry I didn't read your patch carefully and it's surprising for me that you didn't remove/modify this line in configure.ac: CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" With this line left there, feature detections for _curses are bro

[issue28946] AttributeError: module 'signal' has no attribute 'SIGALRM'

2016-12-12 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Can you import _signal? And what's the output of dir(_signal)? Another possibility is that there's another signal.py in the search path. Could you also paste the output of repr(signal)? By the way, here on Arch Linux, both signal.SIGINT and signal.S

[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize

2016-12-15 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue27400> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7291] urllib2 cannot handle https with proxy requiring auth

2016-12-15 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Modify target versions to bugfix and feature branches -- versions: +Python 3.7 -Python 2.6, Python 3.4 ___ Python tracker <http://bugs.python.org/issue7

[issue28446] pyvenv generates malformed hashbangs for scripts

2016-12-16 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Seems there are quite a few typos/copy-paste errors in the original steps-to-reproduce. Here are my steps on macOS: $ ./python-build/python.exe -m venv 'aaa bbb' $ source ./aaa\ bbb/bin/activate $ pip zsh: /Users/yen/tmp/aaa bbb/bin/pip: bad i

[issue28180] sys.getfilesystemencoding() should default to utf-8

2016-12-16 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue28180> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28996] wcscoll is broken on Android and test_locale fails

2016-12-17 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I'm afraid that the sentence "wcscoll/wcsxfrm have known bugs" is misleading for people who are not quite familiar with Android. The actual cause is that BioniC's setlocale() behaves differently than other platforms. Most implementat

[issue29007] Virus detected when attempting to download numpy-1.11.3-cp35-none-win32.whl

2016-12-18 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: numpy is not part of Python. Please report this to http://www.numpy.org/ -- assignee: -> christian.heimes components: +SSL nosy: +Chi Hsuan Yen, christian.heimes ___ Python tracker <http://bugs.python.org/issu

[issue29007] Virus detected when attempting to download numpy-1.11.3-cp35-none-win32.whl

2016-12-18 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Sorry Crys, I misclicked on SSL and I don't have the permission to revert it :/ -- ___ Python tracker <http://bugs.python.org/is

[issue28762] configure links with lockf and F_LOCK is not declared in Android API 24

2016-12-21 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: FYI: Since Android NDK r14 beta1, F_LOCK is defined in unified headers. [1] In $ANDROID_NDK/sysroot/usr/include/bits/lockf.h: #define F_ULOCK 0 #define F_LOCK 1 #define F_TLOCK 2 #define F_TEST 3 [1] https://android.googlesource.com/platform/ndk.git/+/master

[issue29040] building Android with android-ndk-r14

2016-12-21 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Thanks for compiling up necessary changes for NDK r14! Seems that indicates future Python versions will require at least NDK r14 to build? Another headache from unified headers is that it requires different --sysroot in compilation and linking. Currently

[issue29051] Improve error reporting involving f-strings (PEP 498)

2016-12-23 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: Here are the two examples I found confusing when playing with f-strings. The first one involves with a NameError: $ cat test2 f''' { FOO } ''' $ python3.7m test2 Traceback (most recent call last): File "test2", line

[issue29068] Fix example code for PyErr_Fetch

2016-12-25 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: Remove an extra * The typo is there in 3.5~3.7 branches. 2.7 branch does not have this example. Nosy the two major commiters to Python/errors.c -- assignee: docs@python components: Documentation files: PyErr_Fetch-fix.patch keywords: patch messages

[issue27659] Prohibit implicit C function declarations

2016-12-25 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: (Re-use the existing issue) Here's a patch that tries to add -Werror=implicit-function-declaration to $BASECFLAGS. This is useful for cross-compiling. When a function is missing, the error jumps out during the build time rather than runtime. T

[issue27659] Prohibit implicit C function declarations

2016-12-25 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > Would it be possible to not add this option for third party extensions? Good suggestion. Just use $CFLAGS_NODIST instead of $BASECFLAGS. -- Added file: http://bugs.python.org/file46036/prohibit-implicit-function-declarations.pa

[issue29082] In 2.7.13, _ctypes.LoadLibrary no longer accepts Unicode objects

2016-12-27 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: In issue27330, there's one more change besides fixing possible memory leaks. In LoadLibrary function of _ctypes: [1] -if (!PyArg_ParseTuple(args, "O|O:LoadLibrary", &nameobj, &ignored)) +if (!PyArg_ParseTuple(args, &quo

[issue29082] In 2.7.13, _ctypes.LoadLibrary no longer accepts Unicode objects

2016-12-27 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Sorry, but I'm afraid of being unable to test it. I tried to setup a Windows build environment for 2.x but failed. (I've once successfully built 3.x on Windows for issue25939, but things seems different now :( -- keywords: +patch Added f

[issue29095] Compiling Python 3.6 from source on MacOS X Sierra

2016-12-28 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Did you set CFLAGS and LDFLAGS? -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue29095> ___ ___ Python-bug

[issue29095] Compiling Python 3.6 from source on MacOS X Sierra

2016-12-29 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Ah, things are quite the opposite :) You have to set CFLAGS and LDFLAGS so that setup.py can find openssl headers and libraries from Homebrew. For example: export CFLAGS="-I/usr/local/opt/openssl/include" export LDFLAGS="-L/usr/local/opt/op

[issue29095] Compiling Python 3.6 from source on MacOS X Sierra

2016-12-29 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Change this line: export CFLAGS="-I/usr/local/Cellar/openssl/1.0.2j/include/openssl" into: export CFLAGS="-I/usr/local/Cellar/openssl/1.0.2j/include" -- ___ Python tracker <http://bug

[issue29082] In 2.7.13, _ctypes.LoadLibrary no longer accepts Unicode objects

2016-12-31 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : Removed file: http://bugs.python.org/file46055/LoadLibrary_revert_arg_parsing.patch ___ Python tracker <http://bugs.python.org/issue29

[issue29082] In 2.7.13, _ctypes.LoadLibrary no longer accepts Unicode objects

2016-12-31 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I finally get Windows builds working. Here's the patch. -- Added file: http://bugs.python.org/file46102/issue29082.patch ___ Python tracker <http://bugs.python.org/is

[issue29082] In 2.7.13, _ctypes.LoadLibrary no longer accepts Unicode objects

2016-12-31 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Oops, Parser/asdl_c.py shouldn't be included. Here's the correct patch -- Added file: http://bugs.python.org/file46103/issue29082.patch ___ Python tracker <http://bugs.python.o

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue29057> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Here's a how-to for reproducing this bug on Sierra: 1. Install Xcode 7.3.1 (All 7.x should be fine) 2. ./configure --enable-universalsdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk 3. make On Benja

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : Added file: http://bugs.python.org/file46109/issue29057.patch ___ Python tracker <http://bugs.python.org/issue29057> ___ ___ Python-bugs-list m

[issue29128] No way to instsall win32com on python 3.6

2017-01-02 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: https://github.com/pywin32/pypiwin32/pull/2 Anyway this is not a Python issue but pywin32's. -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/is

[issue26851] android compilation and link flags

2017-01-05 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > Note that the system libffi must also be compiled with these same flags Just tried. With my packaging scripts, CPython on ARM is compiled with -mfloat-abi=softfp -mfpu=vfpv3-d16 while libffi not. test_ctypes pass as usual. Maybe ctypes test suite is

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-01-06 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I guess replace mkstemp (C function) with tempfile.mkstemp (Python function) can solve the problem. -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue29

[issue29240] Implementation of the PEP 540: Add a new UTF-8 mode

2017-01-12 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue29240> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29082] In 2.7.13, _ctypes.LoadLibrary no longer accepts Unicode objects

2017-01-12 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Here's a new patch using fake library names. And thanks for those related issues about asdl_c.py! -- Added file: http://bugs.python.org/file46273/issue29082_3.patch ___ Python tracker <http://bugs.py

[issue29264] sparc/ffi.c:440 error: 'asm' undeclared

2017-01-14 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Since Python 3.6, building ctypes with bundled libffi is deprecated. Please build libffi separately and configure CPython with --with-system-ffi. This issue can be closed as third-party. -- nosy: +Chi Hsuan Yen

[issue27659] Prohibit implicit C function declarations

2017-01-16 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Thanks for the comment and sorry for the mistake. Here's another updated patch. In PEP7: > Use 4-space indents and no tabs at all. Does that apply to configuration files, too? -- Added file: http://bugs.python.org/file46302/prohibit-implicit-

[issue29308] venv should match virtualenv VIRTUAL_ENV_DISABLE_PROMPT config

2017-01-18 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +vinay.sajip ___ Python tracker <http://bugs.python.org/issue29308> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29397] linux/random.h present but cannot be compiled

2017-02-01 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Could you upload a copy of config.log? Also added developers that play in random.h games -- components: +Build nosy: +Chi Hsuan Yen, benjamin.peterson, haypo ___ Python tracker <http://bugs.python.org/issue29

[issue27659] Prohibit implicit C function declarations

2017-02-02 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Hello, any updates here? I hope this merged soon so that potential issues on obscure platforms can be fixed as soon as possible. -- ___ Python tracker <http://bugs.python.org/issue27

[issue29436] Compilation failure against Android NDK r14 beta 2

2017-02-03 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: Since Android NDK r14 beta 2, unified headers provide langinfo.h but there's no nl_langinfo() in it, causing linking failures: libpython3.7m.a(pylifecycle.o): In function `get_locale_encoding': /home/yen/Projects/python3-android/src/cpyt

[issue29436] Compilation failure against Android NDK r14 beta 2

2017-02-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Here's a copy of $ANDROID_NDK/sysroot/usr/include/langinfo.h. (/sysroot/ stores unified headers [1]) To use those headers correctly, packagers have to add -D__ANDROID_API__=XY to CPPFLAGS. On the other hand, __ANDROID_API_FUTURE__ is defined in $ANDROI

[issue29439] _decimal on Android requires linking with libm

2017-02-03 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: Just like issue21668, _decimal requires -lm on Android. This wasn't fixed because _decimal didn't build before issue26846 lands. More specificially, log10 is called https://hg.python.org/cpython/file/tip/Modules/_decimal/libmpdec/mpdecimal.c#l7

[issue29440] _dbm requires -lgdbm if gdbm is built as static libraries

2017-02-03 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: In setup.py, _dbm links to gdbm_compat only. If gdbm is built as dynamic libraries, libgdbm_compat.so has a NEEDED flag for libgdbm.so, so both symbols in libgdbm and libgdbm_compat can be used. However, as static libraries does not provide such a flag

[issue29440] _dbm requires -lgdbm if gdbm is built as static libraries

2017-02-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Add the developer who wrote this line (issue15044) -- nosy: +ncoghlan ___ Python tracker <http://bugs.python.org/issue29

[issue29442] Use argparse and drop dirty optparse hacks in setup.py

2017-02-03 Thread Chi Hsuan Yen
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

[issue29440] _dbm requires -lgdbm if gdbm is built as static libraries

2017-02-04 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Sorry, -lgdbm should come after -lgdbm_compat, or symbols in libgdbm.a are still not resolved. I don't know why - linking is a magic :( -- Added file: http://bugs.python.org/file46517/gdbm.patch ___ Python tr

[issue27659] Prohibit implicit C function declarations

2017-02-06 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > If yes, can we close the issue? Yes and thanks! As a side note, on Android it prevents broken grp.cpython-37m.so, too. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tr

[issue29439] _decimal on Android requires linking with libm

2017-02-07 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Actually my device is 6.0. Seems there's nothing interesting between API 23 and 24 on android-changes-for-ndk-developers.md :) Anyway, _decimal should not depend on the whether the python binary references to libm.so or not. Instead, _decimal should expli

[issue23404] 'make touch' does not work with git clones of the source repository

2017-02-10 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Just tried boot-flag.patch with https://github.com/python/cpython/commit/16e07881bd3867d471dd0a25c5117672b65c90ee. Doesn't work out-of-box: #./Programs/_freeze_importlib \ ./Lib/importlib/_bootstrap.py Python/importlib.h /bin/sh: line 1: ./Lib/impo

[issue27640] add the '--disable-test-suite' option to configure

2017-02-10 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue27640> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29541] Python3 error while building on Alt-F

2017-02-13 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: My patch at https://hg.python.org/cpython/rev/ca2f024ce7cb may help. It points out missing symbols earlier. -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue29

[issue29538] bugs.python.org does not redirect to HTTPS

2017-02-13 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Duplicate of http://psf.upfronthosting.co.za/roundup/meta/issue463 -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue29

[issue29541] Python3 error while building on Alt-F

2017-02-13 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: That's super strange. crypt() is used in _crypt module only, and this modules is not used elsewhere in Python. A few more tests may help diagnostics 1. What's the result of ```./python -E```? 2. Does `import crypt` run fine in ./python? 3. Are

[issue29442] Use argparse and drop dirty optparse hacks in setup.py

2017-02-13 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I've found a simpler patch set for supporting Android builds, so I don't need this patch anymore. If you don't think it's necessary, just close it. > usage of os.system() in some places I

[issue29442] Use argparse and drop dirty optparse hacks in setup.py

2017-02-13 Thread Chi Hsuan Yen
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. -- ___ Python tracker <http://bugs.python.org/is

[issue29538] bugs.python.org does not redirect to HTTPS

2017-02-13 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: >From CPython's developer guide [1]: "Issues about the tracker should be reported to the meta tracker." > which doesn't support HTTPS at all I don't know where I should go for issues about the meta tracker. Maybe a meta-meta

[issue29442] Use argparse and drop dirty optparse hacks in setup.py

2017-02-13 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: You're right. argparse has indirect dependency on dynamic modules so it can't be used in setup.py. Cross builds use prebuilt Python binaries so there's no problem. Sorry for those noises. I still think it's a dirty hack as it limits scalabi

[issue29556] Remove an unused #include from bltinmodule.c

2017-02-14 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: This #include is added in b744ba1d14c5487576c95d0311e357b707600b47 (issue8610) and later the use of CODESET is removed in d64e8a75e5138d5e5970f0c70995ae5cc377c421 (issue9642). Found this in investigating issue29436 Add haypo as both commit is written by you

[issue29556] Remove an unused #include from bltinmodule.c

2017-02-14 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- pull_requests: +58 ___ Python tracker <http://bugs.python.org/issue29556> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29556] Remove an unused #include from bltinmodule.c

2017-02-14 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Hmmm, seems there are more redundant #include ; let me check one by one -- ___ Python tracker <http://bugs.python.org/issue29

[issue29556] Remove unused #include

2017-02-14 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- title: Remove an unused #include from bltinmodule.c -> Remove unused #include ___ Python tracker <http://bugs.python.org/issu

[issue24665] CJK support for textwrap

2017-02-14 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Some CJK character are marked as "ambiguous width". Seems in this patch ambiguous characters are assumed as narrow. Maybe it's better to document it? ---------- nosy: +Chi Hsuan Yen ___ Python

[issue29567] Allow argparse to be used in setup.py

2017-02-15 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: When proposing a fix for issue29442, I got another issue - argparse can't be used in setup.py for native (non-cross) builds because argparse imports gettext and gettext imports struct. I'll propose a fix for that. -- components: Buil

[issue29567] Allow argparse to be used in setup.py

2017-02-15 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- pull_requests: +78 ___ Python tracker <http://bugs.python.org/issue29567> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29442] Use argparse and drop dirty optparse hacks in setup.py

2017-02-15 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Aha the fix is simple => issue29567 -- ___ Python tracker <http://bugs.python.org/issue29442> ___ ___ Python-bugs-list mai

[issue29567] Allow argparse to be used in setup.py

2017-02-16 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: As PR 119 is closed, I'll continue this in issue29442 -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.pyth

[issue29442] Use argparse and drop dirty optparse hacks in setup.py

2017-02-16 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- pull_requests: +99 ___ Python tracker <http://bugs.python.org/issue29442> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29442] Use argparse and drop dirty optparse hacks in setup.py

2017-02-16 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Now I have a working patch at PR 139, and dropping optparse is still the way to go, so I reopen it. I'm not familiar with CPython conventions. Sorry if reopening an issue is impolite. -- resolution: not a bug -> status: closed

  1   2   3   >