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

2017-02-16 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : Removed file: http://bugs.python.org/file46511/setup-argparse.patch ___ Python tracker <http://bugs.python.org/issue29442> ___ ___ Python-bug

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

2017-02-17 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Here are test results for PR 53: shell@ASUS_Z00E_2:/data/local/tmp $ python3.7m -m test -u curses test_curses Run tests sequentially 0:00:00 [1/1] test_curses 1 test OK. Total duration: 1 sec Tests result: SUCCESS abcshell@ASUS_Z00E_2:/data/local/tmp $ I know

[issue29591] Various security vulnerabilities in bundled expat

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

[issue29436] Compilation failure against Android NDK r14 beta 2

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

[issue29436] Compilation failure against Android NDK r14 beta 2

2017-02-18 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I've improved the patch and submitted it as PR 159. Now on Android: 1. _locale is built 2. _locale has several symbols, including CODESET 3. _locale doesn't have nl_langinfo() Basically _locale maps what langinfo.h does. On Android langinfo.h h

[issue29436] Compilation failure against Android NDK r14 beta 2

2017-02-18 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Well, I have to commit changes to configure and pyconfig.h, otherwise Travis tests fail. Maybe .travis.yml should call autoreconf first. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29436] Compilation failure against Android NDK r14 beta 2

2017-02-18 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > Any reason why you do omit mentioning these important facts in the issue ? Both in the title of this issue and that PR, I mention "NDK r14 beta 2". I'm not sure what you're referring to. On IRC, irker states the title first and then

[issue29442] Replace optparse with argparse in setup.py

2017-02-19 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I see your points. Indeed in many times I didn't think carefully before leaving a comment, and not even noticing that my comments can be offensive afterwards. I apologize for all those cases and I'll be more careful when interacting with others in

[issue29436] Compilation failure against Android NDK r14 beta 2

2017-02-19 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Thanks for the response. Sorry if my previous work on Android brings confusion. To prevent possible wasting of time in the future, I'd like to confirm myself for some conclusions: CPython's support for Android targets only stable releases of the of

[issue7438] Allow to use a part of subprocess module during building Python

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

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

2017-02-22 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > Is tmpfile() available on Android? Yes. Just tried it with Android NDK r13 with clang and API 21 (Android 5.0). Here's the source code test.c: #include int main() { FILE *fp = NULL; char c = '\0'; fp = tmpfile();

[issue20916] ssl.enum_certificates() will not return all certificates trusted by Windows

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

[issue28747] Expose SSL_CTX_set_cert_verify_callback

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

[issue26083] ValueError: insecure string pickle in subprocess.Popen on Python 2

2016-05-28 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Great point! -- resolution: fixed -> status: closed -> open ___ Python tracker <http://bugs.python.org/issue26083> ___ ___

[issue26855] android: add platform.android_ver()

2016-06-05 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I guess ro.kernel.qemu is not generic enough to be an item in android_ver(). In tests you can simply use _android_getprop() -- ___ Python tracker <http://bugs.python.org/issue26

[issue17004] Expand zipimport to include other compression methods

2016-06-06 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: +1 for that. I like XZ support so that our application size can be reduced. -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue17

[issue27442] expose Android API level in sys.implementation

2016-07-02 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I don't think sys.implementation is a good place to contain the information of the underlying platform. By Doc/sys.rst: An object containing information about the implementation of the currently running Python interpreter. -- nosy: +Chi Hsua

[issue27442] expose Android API level in sys.implementation

2016-07-02 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Sorry, it's Doc/library/sys.rst -- ___ Python tracker <http://bugs.python.org/issue27442> ___ ___ Python-bugs-list m

[issue27442] expose Android API level in sys.implementation

2016-07-02 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: OK I see the rationale. -- ___ Python tracker <http://bugs.python.org/issue27442> ___ ___ Python-bugs-list mailing list Unsub

[issue27453] Fix cross-compilation with Android NDK and Clang

2016-07-05 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: Motivation: Android NDK is deprecating GCC and moving ot Clang/LLVM. From [1]: We strongly recommend switching to Clang. GCC in the NDK is now deprecated in favor of Clang. This patch fixes the only one problem when migrating GCC to Clang. In my build script

[issue27453] Fix cross-compilation with Android NDK and Clang

2016-07-05 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Several days ago I have once tried to set CC="clang -target $(TARGET) -gcc-toolchain $(GCC_TOOLCHAIN)", and it failed to build some dependency of Python (I can't remember). Just tried and everything is OK. Dunno what's changed. Anyway both

[issue27442] expose the Android API level in sysconfig.get_config_vars()

2016-07-05 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Here's an issue - there's already a macro called ANDROID_API defined in libcutils [1] If someone is going to integrate Python into AOSP, redefining macros may cause a problem. [1] https://android.googlesource.com/platform/system/core/+/master/incl

[issue27442] expose the Android API level in sysconfig.get_config_vars()

2016-07-05 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Yep adding Python to Android's build system is a rare case. Just to mention there's already an macro and avoiding possible redefined macros is always good. -- ___ Python tracker <http://bugs.python.o

[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: +1 for this. Cross-compile CPython for ARM with clang fails in _ctypes due to https://llvm.org/bugs/show_bug.cgi?id=20595. This bug is already fixed in libffi. By the way, I can't apply libffi.patch to the default branch. Some hunks are rejcted. Is

[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Oops the proglem of clang on ARM is not completely fixed in libffi 3.2.1. This commit [1] fixes only one `stmeqia` but not another. [1] https://github.com/libffi/libffi/commit/6eff9ff9e72463b9783be2514f944b6f05692054#diff-c6400d42bf23866ded49558ca9a54205R220

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-07 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Hit by missing `python` command from Python/makeopcodetargets.py, too. Is `make touch` the correct way? -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue26

[issue27369] [PATCH] Tests break with --with-system-expat and Expat 2.2.0

2016-07-07 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : Added file: http://bugs.python.org/file43652/issue27369.patch ___ Python tracker <http://bugs.python.org/issue27369> ___ ___ Python-bugs-list m

[issue27369] [PATCH] Tests break with --with-system-expat and Expat 2.2.0

2016-07-07 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Added a patch. -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue27369> ___ ___ Python-bugs-list mailin

[issue26942] android: test_ctypes crashes on armv7

2016-07-09 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Maybe a libffi issue. The crash is still with libffi git-master and CPython hg-tip + `--with-system-libffi`. Reported to https://github.com/libffi/libffi/issues/262 -- nosy: +Chi Hsuan Yen ___ Python tracker <h

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-10 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Thanks! It's now working find with `make touch` :) -- ___ Python tracker <http://bugs.python.org/issue26662> ___ ___ Pytho

[issue26942] android: test_ctypes crashes on armv7

2016-07-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Found libffi PR240 that fixes closures on Android: shell@ASUS_Z00E_2:/data/local/tmp $ python3.6 -m test.test_ctypes ...s..s..sss

[issue26942] android: test_ctypes crashes on armv7

2016-07-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: By msg264746, only ARM fails, so I patch libffi for arm and aarch64 triplets only -- keywords: +patch Added file: http://bugs.python.org/file43894/libffi-pr240.patch ___ Python tracker <http://bugs.python.

[issue26942] android: test_ctypes crashes on armv7

2016-07-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Test results against patched libffi in Modules/_ctypes: shell@ASUS_Z00E_2:/data/local/tmp $ python3.6 -m test.test_ctypes ...s..s..s

[issue26942] android: test_ctypes crashes on armv7 and aarch64

2016-07-27 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- title: android: test_ctypes crashes on armv7 -> android: test_ctypes crashes on armv7 and aarch64 ___ Python tracker <http://bugs.python.org/issu

[issue26865] Meta-issue: support of the android platform

2016-07-28 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Some dependent issues, like issue26852, issue26859 and issue27640, are for reducing the size of an installation. How about moving them to another meta-issue? First they are not critical for normal usages on Android. Second they are not limited to Android

[issue26865] Meta-issue: support of the android platform

2016-07-28 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Maybe the term "normal usages" is not accurate. I was trying to refer all possible Python usages on Android, and the test suite is a subset of them, so they should be fixed, too. I propose the aforementioned change (creating another meta-issue) bec

[issue26851] android compilation and link flags

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

[issue26942] android: test_ctypes crashes on armv7 and aarch64

2016-07-29 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: You're right. I thought the default malloc() implementation is better, and now I think a unified implementation on Android brings less surprises. -- Added file: http://bugs.python.org/file43945/libffi-pr240.

[issue27659] Check for the existence of crypt()

2016-07-31 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: On Android the crypt() function is missing, causing ugly linking errors when compiling the _crypt module. This patch handles it elegantly. A question: should I include changes to configure and pyconfig.h.in in the patch? -- components: Cross-Build

[issue27659] Check for the existence of crypt()

2016-07-31 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Version 2: correct the name added to `missing` -- Added file: http://bugs.python.org/file43955/check-crypt.patch ___ Python tracker <http://bugs.python.org/issue27

[issue27659] Check for the existence of crypt()

2016-07-31 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Some references for crypt(): POSIX standard: http://pubs.opengroup.org/onlinepubs/9699919799/functions/crypt.html Linux man page: http://man7.org/linux/man-pages/man3/crypt.3.html FreeBSD man page: https://www.freebsd.org/cgi/man.cgi?crypt(3) Mac OS X man page

[issue27659] Check for the existence of crypt()

2016-07-31 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Thanks, added to the patch description -- ___ Python tracker <http://bugs.python.org/issue27659> ___ ___ Python-bugs-list mailin

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

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

[issue12345] Add math.tau

2016-08-14 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: The documentation of tau should mention it's equal to 2 * pi. -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/is

[issue12345] Add math.tau

2016-08-14 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: >From http://tauday.com/ > No, really, pi is wrong... For me it's a sign that pi is (currently) more common than tau. One purpose of the documentation is helping newcomers understand what Python's built-in objects mean. "tau = 2 * pi"

[issue27781] Change sys.getfilesystemencoding() on Windows to UTF-8

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

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-08-19 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I've just tried doko's patch on Arch Linux. Before this patch there are three test failures in test_distutils and test_sysconfig, just like Gentoo. After the patch, all tests in test_distutils and test_sysconfig pass. On my PC both `gcc -print-mult

[issue27323] ncurses putwin() fails in test_module_funcs

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

[issue27323] ncurses putwin() fails in test_module_funcs

2016-08-20 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: This is actually a ncurses bug: http://lists.gnu.org/archive/html/bug-ncurses/2016-05/msg0.html -- ___ Python tracker <http://bugs.python.org/issue27

[issue27323] ncurses putwin() fails in test_module_funcs

2016-08-20 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: NCURSES_OPAQUE is enabled if --with-reentrant is used. From Xavier's log I guess it's on Arch Linux. Arch Linux does not use --with-reentrant in ncurses [1] and it seems OpenSUSE does [2]. [1] https://git.archlinux.org/svntogit/packages.git/

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-25 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <https://bugs.python.org/issue26470> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: There are still quite a few references to `PROTOCOL_SSLv23` in Doc/library/ssl.rst. Should they be updated as well? -- ___ Python tracker <https://bugs.python.org/issue26

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-08-30 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Changeset 5c77488830bc brings a regression - Android build fails with the following message: export H2PY; H2PY="$PYTHON_FOR_BUILD /home/yen/python3-android/src/cpython/build-target/../Tools/scripts/h2py.py"; \ cd ../Lib/plat-aarch64-linux-gnu

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-08-30 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Oh didn't see the title of this issue. Here's the patch for Android. -- Added file: https://bugs.python.org/file44260/issue23968-android-regression.patch ___ Python tracker <https://bugs.python.o

[issue24333] urllib2 HTTPS connection over a digest auth enabled proxy gives 407

2015-05-30 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: This is originally my question at stackoverflow.com. (http://stackoverflow.com/q/30511341/3786245) I think it's a bug, so I posted it here. I'm trying to fetch HTTPS pages through a proxy with digest authentication. Here are my codes: import urll

[issue24333] urllib2 HTTPS connection over a digest auth enabled proxy gives 407

2015-05-30 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: For those who are working on this problem, my squid.conf may be helpful: --- squid.conf.default 2015-05-31 03:33:34.006361795 +0800 +++ squid.conf 2015-05-31 03:36:28.533034294 +0800 @@ -49,9 +49,15 @@ # Example rule allowing access from your local networks

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-11-25 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue23496> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2015-11-25 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue16255> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16353] add function to os module for getting path to default shell

2015-11-25 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue16353> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22100] Use $HOSTPYTHON when determining candidate interpreter for $PYTHON_FOR_BUILD.

2015-11-25 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue22100> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21668] The select and time modules uses libm functions without linking against it

2015-11-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Bump. For rev c6930661599b timemodule.c and selectmodule.c no longer calls libm functions, while audioop.c and _ctypes_test.c still do. I have my updated patch here based on previous patches. Note that the introduction of detect_math_libs() is my naive try

[issue21668] The select and time modules uses libm functions without linking against it

2015-11-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Well, the hg revision of Python in two tests are different, because I `hg pull -u` each time I build. -- ___ Python tracker <http://bugs.python.org/issue21

[issue7291] urllib2 cannot handle https with proxy requiring auth

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

[issue25939] _ssl.enum_certificates() fails with ERROR_ACCESS_DENIED if python.exe run with low integrity level

2015-12-24 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: Originally reported at https://github.com/rg3/youtube-dl/issues/7951 Steps to reproduce: 1. Build 99665:dcf9e9ae5393 with Visual Studio 2015 2. Download and extract PsTools [1] 3. PsExec.exe -l python.exe 4. In Python, run: import _ssl

[issue25940] SSL tests failed due to expired svn.python.org SSL certificate

2015-12-24 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: The certificate of svn.python.org expires at Thu 24 Dec 2015 08:28:32 PM CST GMT, about 20 minutes ago. Please update its certificate or lots of tests in Lib\test\test_ssl.py fails with SSL: CERTIFICATE_VERIFY_FAILED. -- components: Tests messages

[issue25939] _ssl.enum_certificates() fails with ERROR_ACCESS_DENIED if python.exe run with low integrity level

2015-12-24 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: PsExec.exe seems not redistributable. PAExec is an alternative but I've not tried it. [1] Another option is re-implementing a tiny program for lowering the integrity level based on example codes provided in [2], which I've not tried yet, either.

[issue25939] _ssl.enum_certificates() fails with ERROR_ACCESS_DENIED if python.exe run with low integrity level

2015-12-24 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: OK I've just succeeded in creating a low integrity level process with my own codes. Now the problem is: how can I integrate this tool into the test system? Seems the integrity level is per-process, while all tests are run in the same process. --

[issue25939] _ssl.enum_certificates() fails with ERROR_ACCESS_DENIED if python.exe run with low integrity level

2015-12-27 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Added tests for ssl.enum_certificates() and ssl.enum_crls() within low integrity processes. -- Added file: http://bugs.python.org/file41432/test-ssl-with-lower-integrity-level.patch ___ Python tracker <h

[issue26083] ValueError: insecure string pickle in subprocess.Popen on Python 2

2016-01-11 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: Originally reported at [1] and [2]. On Mac OS X, read() on pipes may return only the first 512 bytes. The remaining bytes are not read into `data` in _execute_child(). There's a patch proposal at [3]. I didn't test it myself because I can'

[issue26087] PEP 0373 should be updated

2016-01-11 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: Current PEP 0373 lists Python 2.7.11 as a future release, and there's no information about Python 2.7.12. Please update it, thanks! -- assignee: docs@python components: Documentation messages: 258063 nosy: Chi Hsuan Yen, docs@python priority: n

[issue25939] _ssl.enum_certificates() fails with ERROR_ACCESS_DENIED if python.exe run with low integrity level

2016-02-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Thanks for accepting my patch. I'm curious: any reason not applying to 2.7 branch? We're building youtube-dl.exe with py2exe on Python 2.7 as py2exe on 3.x sometimes fails. (https://github.com/rg3/youtube-dl/i

[issue25939] _ssl.enum_certificates() fails with ERROR_ACCESS_DENIED if python.exe run with low integrity level

2016-02-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Didn't see it. Sorry for bothering. -- ___ Python tracker <http://bugs.python.org/issue25939> ___ ___ Python-bugs-list m

[issue26313] ssl.py _load_windows_store_certs fails if windows cert store is empty

2016-03-11 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: The same issue is reported at https://github.com/rg3/youtube-dl/issues/8132, too. Empty Windows cert store is uncommon. The only case I found so far is on Wine. Steps to reproduce: 1. On Arch Linux x86_64, install mingw-w64-python2-bin from AUR 2. Run the

[issue20305] Android's incomplete locale.h implementation prevents cross-compilation

2016-03-20 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Android NDK provides an "android-support" package [1]. There is no documentation other than README in its git repository, I guess it's a 'compatibility layer' between applications targetting a complete C library and Android'

[issue20305] Android's incomplete locale.h implementation prevents cross-compilation

2016-03-20 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: curses was broken and now it's fixed. Yes - Android's locale patch is no longer necessary in _curses either. However, there are runtime errors: shell@ASUS_Z00E_2:/data/local/tmp $ python3.6 -c 'import curses;

[issue26723] Add an option to skip _decimal module

2016-04-09 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: As said by Stefan Krah in http://bugs.python.org/issue23496#msg236886, Android ports can use pure python decimal module. Of course I can, but _decimal is always built and error messages are spamming. This change allow disabling _decimal from ./configure

[issue26723] Add an option to skip _decimal module

2016-04-09 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Regarding #20305: Now building is fine, while some runtime errors exist. I don't see reasons running ncurses on Android, so kicking those errors are not in my plan. For this change: Thanks for pointing that variable - not noticing it before. Seems I

[issue21668] The select and time modules uses libm functions without linking against it

2016-04-19 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: The approach with a helper function is better. See https://github.com/yan12125/python3-android/blob/038271d/mk/python/modules-link-libm.patch. By the way, I have verified there are no libraries referencing libm functions with https://github.com/yan12125

[issue26854] missing header on android for the ossaudiodev module

2016-04-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Maybe checking sys/soundcard.h and linux/soundcard.h in configure.ac is better? [1] https://github.com/yan12125/python3-android/blob/cpython-hg/mk/python/soundcard-h-path.patch -- nosy: +Chi Hsuan Yen ___ Python

[issue26855] add platform.android_ver() for android

2016-04-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > Also how can we be sure that the '/system/build.prop' file may be guaranteed > to exist on all android devices ? This path is hard-coded in BioniC [1]. Though I can't find a document/relevant source codes to guarantee 'ro.

[issue26865] Meta-issue: support of the android platform

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

[issue26853] missing symbols in curses and readline modules on android

2016-04-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Things may be different if ncurses is built with --without-termlib or --enable-widec is not specified. I wasn't hit by this bug as my ncurses is built with --without-termlib. -- nosy: +Chi Hsuan Yen ___ P

[issue26855] add platform.android_ver() for android

2016-04-27 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Isn't this macro used in compile time? I thought android_ver() aims to check runtime versions. -- ___ Python tracker <http://bugs.python.org/is

[issue26855] add platform.android_ver() for android

2016-04-27 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I have a WIP patch. [1] It's based on Shiz's patch [2]. [1] https://github.com/yan12125/python3-android/blob/cpython-hg/mk/python/android-misc.patch [2] https://github.com/rave-engine/python3-android/blob/9bb6420317922c07df405315eea040f9301f7eca

[issue26886] Cross-compiling python:3.5.x fails with "Parser/pgen: Parser/pgen: cannot execute binary file"

2016-04-29 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: You may need this patch: https://hg.python.org/cpython/rev/0f7a299c6d50 -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.org/issue26

[issue26892] debuglevel not honored in urllib

2016-04-30 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: The following test program: import sys try: import urllib.request as urllib_request except: import urllib2 as urllib_request print(sys.version) handler = urllib_request.HTTPSHandler(debuglevel=1) opener = urllib_request.build_opener(handler) print

[issue26892] debuglevel not honored in urllib

2016-04-30 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Patch for the test. -- Added file: http://bugs.python.org/file42665/urllib_debuglevel_test.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26858] setting SO_REUSEPORT fails on android

2016-05-01 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > Where is the patch that adds android_ver()? http://bugs.python.org/issue26855 Xavier de Gaye's implementation is buggy while works for most cases. -- nosy: +Chi Hsuan Yen ___ Python tracke

[issue26932] android: test_posix fails

2016-05-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: On Android RTLD_* constants are not defined via macros but as enum values. I guess CPython needs to check each one in configure.ac. See [1] [1] https://android.googlesource.com/platform/bionic/+/master/libc/include/dlfcn.h -- nosy: +Chi Hsuan Yen

[issue26932] android: test_posix fails

2016-05-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Patch attached for improved RTLD_* checking. -- keywords: +patch Added file: http://bugs.python.org/file42703/posixmodule_rtld_constants.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26932] android: test_posix fails

2016-05-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: For test_getgroups, in Android 5.1 `id` does not support -G. [1] In Android 6.x `id` seems to support -G. [2] I guess CPython can just skip the test on Android < 6.0. [1] https://android.googlesource.com/platform/system/core/+/android-5.1.1_r37/toolbox/i

[issue26932] android: test_posix fails

2016-05-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Version 2. -- Added file: http://bugs.python.org/file42705/rtld_constants.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26855] android: add platform.android_ver()

2016-05-04 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Several questions on implementation: 1. Should Android 4.1 supported? If not pass_fds and logics for deriving it can be removed. 2. I can't find ro.build.version.full on any device/emulator I have access to. Maybe it should be removed due to low popul

[issue26855] android: add platform.android_ver()

2016-05-04 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Version 2 attached. Removed ro.build.version.full. -- Added file: http://bugs.python.org/file42723/android_ver.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26939] android: test_functools hangs on armv7

2016-05-06 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: FWIW, test_functools passes on ASUS Zenfone 2 Laser ZE500KL with stock ROM (rooted) and my patchset. [1] The CPU is ARM64 and the Python is built as 32-bit ARM binaries. test_threading (#26941) and test_importlib (#26940) pass, too. test_concurrent_futures

[issue26934] android: test_faulthandler fails

2016-05-07 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: This is due to something mysterious in Android's bionic & kernel. For the following C program: #include #include #include int main() { sigaction(SIGSEGV, NULL, NULL); raise(SIGSEGV); printf("Good evening!\n"); return

[issue26935] android: test_os fails

2016-05-08 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: My implementation at #26855 returns a tuple of strings like other funcitons, including java_ver() and mac_ver(). Maybe it requires a change. -- nosy: +Chi Hsuan Yen ___ Python tracker <http://bugs.python.

[issue26855] android: add platform.android_ver()

2016-05-08 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Android framework provides an SDK_INT field [1], which parses the value of `ro.build.version.sdk` and defaults to 0 if failed [2]. Should android_ver() return an integer for the `sdk` field, too? It simplifies the usage in #26935 and similar ones. [1] https

[issue26855] android: add platform.android_ver()

2016-05-11 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Version 3. Still using a try-catch clause to enclose the subprocess call, as _syscmd_ver does the same thing. -- Added file: http://bugs.python.org/file42813/android_ver.patch ___ Python tracker <h

[issue26857] gethostbyname_r() is broken on android

2016-05-11 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > Can people upgrade their devices or do they have to buy a new one? AFAIK most models other than Nexus won't get updates with a bumped major version. (5.x => 6.x for example) -- ___ Python tra

<    1   2   3   >