[issue26646] Allow built-in module in package

2016-04-01 Thread Daniel Shaulov
Daniel Shaulov added the comment: Hi Brett, I don't think that the patch from that issue is relevant anymore. I did take the test case that was proposed in that issue and I am attaching a fixed version here. I did realize from the discussion that my patch probably doesn't work on Windows (I

[issue26646] Allow built-in module in package

2016-03-26 Thread Daniel Shaulov
Changes by Daniel Shaulov <daniel.shau...@gmail.com>: Added file: http://bugs.python.org/file42298/importlib_h.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26646] Allow built-in module in package

2016-03-26 Thread Daniel Shaulov
New submission from Daniel Shaulov: Hi, I was trying to build a python interpreter that has the cpp part of msgpack as a built-in module. I thought that I could just copy the msgpack folder to the Modules folder and add this 2 lines to Modules/Setup.local: msgpack._packer msgpack/_packer.cpp

[issue26539] frozen executables should have an empty path

2016-03-11 Thread Daniel Shaulov
New submission from Daniel Shaulov: A frozen python executable should have an empty path, so it doesn't accidentally run something it was not supposed to. The attached file achieves that by setting Py_NoSiteFlag and Py_IsolatedFlag in Python/frozenmain.c It also checks for Py_FrozenFlag

[issue26534] subprocess.check_output with shell=True ignores the timeout

2016-03-10 Thread Daniel Shaulov
New submission from Daniel Shaulov: Basically - subprocess.check_output("ping localhost", shell=True, timeout=5) Will hang forever. What happens is that subprocess.run times out on communicate, sends SIGKILL *to the shell* and then calls communicate again without the timeout. B

[issue26271] freeze.py makefile uses the wrong flags variables

2016-03-01 Thread Daniel Shaulov
Daniel Shaulov added the comment: Pinging after a month without review (as the devguide suggests). -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26271] freeze.py makefile uses the wrong flags variables

2016-02-02 Thread Daniel Shaulov
New submission from Daniel Shaulov: Tools/Freeze/makemakefile.py uses CFLAGS, LDFLAGS and CPPFLAGS instead of the PY_ prefixed versions. This makes flags passed to ./configure ineffective. The patch makes the trivial fix of adding PY_ when needed. -- components: Build files