[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: A major reason for why the current installers don't install Tk as well is that this would significantly increase the size of the installer. There's also the question of what bits of Tcl/Tk should be bundled, although I guess we should ship a minim

[issue15664] test_curses not run with 'make test'

2012-08-15 Thread Ronald Oussoren
New submission from Ronald Oussoren: I noticed that 'test_curses' is not started when performing "make test" on an OSX box: ... [ 42/369] test_curses test_curses skipped -- sys.__stdout__ is not a tty ... The host is a machine running OSX 10.8, fully up-to-date with patc

[issue13370] test_ctypes fails when building python with clang

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch syncs libffi_osx with the copy of libffi that's included with PyObjC. With this patch test_ctypes passes for me when using clang to build on OSX 10.8. I haven't run the tests with other python releases yet, and also not on a

[issue15664] test_curses not run with 'make test'

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: the test does get run with 'make buildbottest', and then fails with a ValueError exception: $ /Users/ronald/Projects/python/rw/default/tbuild/python.exe -W default -bb -E -R -m test -r -w -j 1 -u all -W --timeout=3600 test_curses Using random se

[issue15664] test_curses not run with 'make test'

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: I knew the test failure looked familiar, but couldn't find the issue in the tracker. This issue (test_curses not running with make test) is due to '-j0' in the arguments to the test runner: with -j0 the runner uses multiprocessing and the st

[issue15664] test_curses not run with 'make test'

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: Yes. I'll add a message to that issue to note that is also affects 'make test' -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed type: -> behavior __

[issue12669] test_curses skipped on buildbots

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: As noted in Issue15664 this issue also affects "make test". -- nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.o

[issue12669] test_curses skipped on buildbots

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: Nadeem: is the failure you show in msg141798 with a version of test_curses that uses pty.openpty? If it isn't: I'd expect more test failures on buildbot machines where the buildbot agent is started as a system daemon, in which case the process doe

[issue12669] test_curses skipped on buildbots

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: BTW. the documentation for curses.setupterm says: curses.setupterm([termstr, fd]) The first argument is actually named "term" in the C code. -- ___ Python tracker <http://bugs.python.o

[issue15035] array.array of UCS2 values

2012-08-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: Py_UNICODE is an typedef for wchar_t and that type is 4 bytes long: >>> a.tobytes() b'h\x00\x00\x00e\x00\x00\x00l\x00\x00\x00l\x00\x00\x00o\x00\x00\x00 \x00\x00\x00w\x00\x00\x00o\x00\x00\x00r\x00\x00\x00l\x00\x00\x00d\x00\x00\x00' >

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm pretty sure this is a generic Makefile bug. I could reproduce this problem with a clean install into a new prefix, after cleaning up the source tree: 'make clean' won't remove the generated file when srcdir != builddir. This line i

[issue13370] test_ctypes fails when building python with clang

2012-08-20 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- keywords: +needs review, patch ___ Python tracker <http://bugs.python.org/issue13370> ___ ___ Python-bugs-list mailing list Unsub

[issue15730] Silence unused value warnings under Mac OS X 10.8/clang

2012-08-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: Patch looks good to me. I've added 3.3 to the list of python versions because it might be worthwhile to apply this to 3.3 as well (after 3.3.0 is released). -- keywords: +needs review versions: +Pytho

[issue14329] proxy_bypass_macosx_sysconf does not handle singel ip addresses correctly

2012-08-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: Patch seems to be present in the current maintenance and development releases (2.7, 3.2 and 3.3). Can you confirm that this issue is no longer present in python 2.7 and later? -- ___ Python tracker <h

[issue15740] test_ssl failure when cacert.org CA cert in system keychain on OSX

2012-08-20 Thread Ronald Oussoren
New submission from Ronald Oussoren: On my laptop (running OSX 10.8, but I have noticed the same on earlier OSX releases) test_ssl fails: == FAIL: test_connect (test.test_ssl.NetworkedTests

[issue15740] test_ssl failure when cacert.org CA cert in system keychain on OSX

2012-08-20 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- assignee: ronaldoussoren -> ___ Python tracker <http://bugs.python.org/issue15740> ___ ___ Python-bugs-list mailing list Un

[issue13370] test_ctypes fails when building python with clang

2012-08-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've tested the patch on OSX 10.5 with GCC and all tests pass. I'd like to get this into 3.3rc1 as the test failure indicate a problem that could cause very vague problems for users of the ctypes library that use clang on OSX to build python (whic

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: There were some problems building using llvm-gcc, those have been resolved by detecting falling back to clang when llvm-gcc is detected. That's the only real problem I know of. -- ___ Python tracker

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: BTW. I wouldn't mind a patch review, particularly by someone that can easily test on Linux. I'm not too keen on checking in this patch without a test on Linux, not this close to 3.3rc1. -- ___ Pyth

[issue15739] Python crashes with "Bus error: 10"

2012-08-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: The bug report mentions python 2.7.1. Could you try to reproduce using the most recent release, or a fresh checkout? The reason I ask this is that the crash report has a deeply nested call stack and there used to be a bug where new threads were created

[issue15739] Python crashes with "Bus error: 10"

2012-08-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: The stack size problem was issue #9670. -- ___ Python tracker <http://bugs.python.org/issue15739> ___ ___ Python-bugs-list m

[issue15740] test_ssl failure when cacert.org CA cert in system keychain on OSX

2012-08-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: What's rather annoying is that I cannot find OpenSSL on opensource.apple.com, which means we cannot check if they use patches add functionality that our users would like to have. One such feature is likely keychain integration (that is, use the CA

[issue15740] test_ssl failure when cacert.org CA cert in system keychain on OSX

2012-08-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: Antoine: Apple almost certainly has hacked their copy of OpenSSL, they do so for other libraries (including python) as well. Apple does not ship CAcerts root certificate, I've added it to the System Keychain on my machine because I use a number of mac

[issue15740] test_ssl failure when cacert.org CA cert in system keychain on OSX

2012-08-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: More interesingly are the download archives for OpenSSL098, which is the openssl version that's used on newer OSX releases. Sadly enough the version used on OSX 10.8 is not present there (that seems to be OpenSSL098-47, the latest download is -35). Dow

[issue15740] test_ssl failure when cacert.org CA cert in system keychain on OSX

2012-08-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: Attached cleaner version of the test: * use self.addCleanup instead of a tearDown method * add comment that explains why the code is present * setUp method is only active on OSX -- Added file: http://bugs.python.org/file26948/issue15740-2.txt

[issue14292] OS X installer build script doesn't set $CXX, so it ends up as "c++"

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch sets not just 'CC' but 'CXX' as well. I haven't tested the patch beyond building on an OSX 10.8 system (that is, the primary use of the script is not tested) --

[issue14292] OS X installer build script doesn't set $CXX, so it ends up as "c++"

2012-08-22 Thread Ronald Oussoren
Changes by Ronald Oussoren : Added file: http://bugs.python.org/file26957/issue14292.txt ___ Python tracker <http://bugs.python.org/issue14292> ___ ___ Python-bugs-list m

[issue13370] test_ctypes fails when building python with clang

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: The change to ppc-ffi_darwin.c was unintentional and should be removed. I must have been sleeping during the merge, as I only intended to copy the files for i386/x86_64 and not for PPC as the latter architecture didn't have problems when compiled with

[issue15761] Setting PYTHONEXECUTABLE can cause segfaults on OS X

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: There could be an off by one error in the decoding of PYTHONEXECUTABLE, mbstowcs will only add a NUL character when there is room for one and when the environment variable is all ASCII the buffer isn't large enough which means the argume

[issue15761] Setting PYTHONEXECUTABLE can cause segfaults on OS X

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: I can now reproduce the isue: env PYTHONHOME=/Library/Frameworks/Python.framework/Versions/3.3 PYTHONEXECUTABLE=/bin/bash MallocGuardEdges=1 MallocStackLogging=1 MallocScribble=1 MallocStackLoggingNoCompact=1 MallocCheckHeapEach=1 arch -i386 python3.3 -c

[issue15761] Setting PYTHONEXECUTABLE can cause segfaults on OS X

2012-08-22 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- versions: +Python 3.2 ___ Python tracker <http://bugs.python.org/issue15761> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15740] test_ssl failure when cacert.org CA cert in system keychain on OSX

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: This also affects 2.7, and the patch doesn't work there. It does work when I add the call to os.putenv at module scope before (before importing ssl), but I don't really like that. It is probably necessary to do it like this though, the code that

[issue15740] test_ssl failure when cacert.org CA cert in system keychain on OSX

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: There is no need to unconditionally skip the test. The cacert.org root certificate is not present on most systems, I just happened to have imported it into my keychain. I've removed the cacert root from my keychain and test_ssl now passed without a

[issue15761] Setting PYTHONEXECUTABLE can cause segfaults on OS X

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: committed a patch in revisions 526c6262d91f and ae51329f9893. Those won't end up as messages in this issue due to a typo in the check-in message. -- ___ Python tracker <http://bugs.python.org/is

[issue15716] Ability to specify the PYTHONPATH via a command line flag

2012-08-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: My fingers are too thick. The two changesets in msg168877 are for issue 15761, not this one. Sorry about the noise. -- nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.org/issue15

[issue13370] test_ctypes fails when building python with clang

2012-08-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I didn't have time to look into this today and will look into this tomorrow. -- Added file: http://bugs.python.org/file26972/smime.p7s ___ Python tracker <http://bugs.python.org/is

[issue14455] plistlib unable to read json and binary plist files

2012-08-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: plutil(1) supports writing json format. That written, the opensource parts of CoreFoundation on opensource.apple.com don't support reading or writing json files. I'm therefore -1 w.r.t. adding support for json formatted plist files, support fo

[issue13370] test_ctypes fails when building python with clang

2012-08-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: What code duplication do you mean? The code in the switch statement at line 71 looks similar for the various case, but it isn't: there is variation in the types uses in the casts (and particularly in the cast used to read the input

[issue13370] test_ctypes fails when building python with clang

2012-08-24 Thread Ronald Oussoren
Changes by Ronald Oussoren : Removed file: http://bugs.python.org/file26972/smime.p7s ___ Python tracker <http://bugs.python.org/issue13370> ___ ___ Python-bugs-list m

[issue13370] test_ctypes fails when building python with clang

2012-08-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: Attached version of the patch without the change to the powerpc specific code. I will commit this version later today (after another testing round). -- Added file: http://bugs.python.org/file26984/issue_13370-2.txt

[issue13370] test_ctypes fails when building python with clang

2012-08-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: That's not code duplication, but a way to silence a compiler warning. I added it while trying to get pyobjc to compile without any warnings. -- ___ Python tracker <http://bugs.python.org/is

[issue13370] test_ctypes fails when building python with clang

2012-08-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: I noticed earlier today that test_ctypes passes for Python 3.3 both with and without my patch. This is on OSX 10.8.1 with an up-to-date Xcode. Configure arguments: '--enable-framework' '--with-pydebug' '--enable-universalsdk=/Applic

[issue13370] test_ctypes fails when building python with clang

2012-08-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: Duh... 3.3 without patch fails when I leave out '--with-pydebug'. I'm now running the testsuite for 2.7 and 3.2 with patch and will commit once those are ready, which should be within a

[issue13370] test_ctypes fails when building python with clang

2012-08-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: The issue should be gone in the upcoming 3.3rc1 release and the next stable releases of 3.2 and 2.7. -- resolution: -> fixed status: open -> pending ___ Python tracker <http://bugs.python.org/i

[issue15782] Compile error for a number of Mac modules with recent Xcode

2012-08-25 Thread Ronald Oussoren
New submission from Ronald Oussoren: Recent versions of Xcode on OSX 10.7 and 10.8 fail to compile 3 of the extension modules in Mac/Modules: the modules for fm, qd and qdoffs. That's because those extensions wrap APIs that are long deprecated and are no longer present. The attached

[issue15761] Setting PYTHONEXECUTABLE can cause segfaults on OS X

2012-08-27 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue15790] Python 3.3.0rc1 release notes claims PEP-405 support, yet pysetup is not in the package (needs more usage documentation, to get pip working)

2012-08-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: PEP 405 is for "venv" support and that is available. Documenting how to use pip/distribute/setuptools with venv is IMHO beyond the scope of the stdlib documentation (and should be easy enough: create a virtual environment using pyvenv, then install

[issue15790] Python 3.3.0rc1 release notes claims PEP-405 support, yet pysetup is not in the package (needs more usage documentation, to get pip working)

2012-08-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: pyvenv won't install setuptools because setuptools is not a stdlib package. Having packaging would have been nice, but that library was not in a good enough shape for the 3.3 release. I don't understand what you try to do in the second traceback.

[issue13405] Add DTrace probes

2012-08-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: The obvious workaround w.r.t. dtrace not finding the preprocessor is to install the command-line tools for xcode, which you can do from Xcode's preferences. something else to try (before installing the commandline tools): add $(dirname $(xcrun -find cpp

[issue13370] test_ctypes fails when building python with clang

2012-08-29 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue13370> ___ ___ Python-bugs-list mailing list Unsubscri

[issue14329] proxy_bypass_macosx_sysconf does not handle singel ip addresses correctly

2012-08-29 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- status: open -> pending type: -> behavior ___ Python tracker <http://bugs.python.org/issue14329> ___ ___ Python-bugs-list

[issue13405] Add DTrace probes

2012-08-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: It's rather annoying that dtrace doesn't honor the PATH variable, and when you run the strings command on /usr/lib/libdtrace.dylib you'll see that it hardcodes the use of gcc (not even cpp or clang). I've filed radar 12196604 in Apple&#x

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-09-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: Is it really possible that the pickle is created after calculation of the wildcard expansion? The GNU make manual says that make will run multiple recipes in parallel when the -j option is used (that is, multiple targets are build at the same time), not that

[issue15838] make install tries to create lib2to3 grammar pickles in source directory

2012-09-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: FWIW the patch is issue15645 was a patch that fixed the issue with minimal changes, as it was created close to the first 3.3 release candidate I didn't want to change code when that could be avoided. A fix that writes the generated file into the build

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-09-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: The configure script for python 3.3 detects llvm-gcc and automatically selects clang when it is found. That seems to be the best feasible solution for this issue. I therefore propose to close this issue

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-09-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've closed the issue as 'wont fix' because llvm-gcc will miscompile 3.3 due to bugs in that compiler. CPython won't work around that compiler bug (if that's even possible). The workaround: use clang to compile (and on older OSX

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: See als Issue15838. -- ___ Python tracker <http://bugs.python.org/issue15822> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-09-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: See also Issue15838 -- ___ Python tracker <http://bugs.python.org/issue15645> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: The other alternative to fix this is to revert the patch in issue 15645 and then remove the -E flag from PYTHON_FOR_BUILD. PYTHON_FOR_BUILD was introduced by a, possibly incomplete, attempt to introduce support for cross compiling. In particular, the

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: What's wrong with working around this bug by reading a smaller amount? How much data is there supposed to be? BTW. URLs for reports in Apple's tracker are fairly useless as bugreports are private (only you and Apple's engineers can see the r

[issue15898] OSX TTY bug

2012-09-14 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.org/issue15898> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15419] distutils: build should use a version-specific build directory

2012-09-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'd change the name of the subdirectories of build instead of the name of the build directory itself. That way distutils will still create one build directory regardless of how many python versions you use, and the name of that directory is e

[issue15419] distutils: build should use a version-specific build directory

2012-09-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't think this is a bugfix, but a new feature and as such the behavior should only be changed for 3.4. The easiest workaround for this issue is to use setuptools or distribute when installing, as those tools do set the various build directori

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: The workaround should not be implemented in os.read because it is a very thin wrapper around the system call and should stay that way. -- ___ Python tracker <http://bugs.python.org/issue15

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: How can you work around it in os.read, without knowing anything about what the file descriptor represents? Just triggering on getting on EINVAL error when calling read might trigger other problems and might even be a valid result for some file descriptors

[issue16023] IDLE froze when typing ctrl-shift-5

2012-09-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: What version of OSX do you use? Do you have ActiveState TCL installed, and if so, which version? Does 'Ctrl+Shift+5' insert a special character in the keyboard layout you use? BTW. I cannot reproduce this on my machine (OSX 10.8.2) with a recen

[issue16044] xml.etree.ElementTree.Element: append method iterator param is broken

2012-09-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: (unassigning as this is not a mac-specific issue) BTW. Is this really a bug, the documentation says that append appends a single element <http://docs.python.org/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.append>: append(sube

[issue16044] xml.etree.ElementTree.Element: append method iterator param is broken

2012-09-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: Use the extend method to add multiple elements. Both the source and documentation indicate that 'append' is used for appending a single item and 'extend' for appending multiple items (just like with list). IMHO this is not a bug. A

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-10-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'd write the extended header when the current file size is larger than the zip64 limit (that is, when 'st.st_size > ZIP64_LIMIT' in the write method. That way the minimal header size is used whenever possible. As you noted this can cause

[issue16211] MacInstalls break PyDev

2012-10-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: The binary installers for OSX do install all of the std library, and AFAIK the same is true for the version of python that ships with the OS. Please explains how to reproduce the problem you are having: * What release of OSX * Which python version (/usr/bin

[issue16211] MacInstalls break PyDev

2012-10-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm closing this as invalid as the python sources for the stdlib are installed by the python.org installer, and this is probably a problem with PyDev. It is lame that Apple doesn't install the python sources anymore, but there is nothing we can do

[issue14329] proxy_bypass_macosx_sysconf does not handle singel ip addresses correctly

2012-10-15 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue14329> ___ ___ Python-bugs-list mailing list Unsubscri

[issue16256] permissions wrong on Mac doc dir

2012-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Oddly enough the share/doc directory is created in the postinstall script for the documentation, looking at the script again makes me think that the script could be removed other than the symlink in /Developer/Documentation and that link is not useful on

[issue16291] Enable darwin-host cross compilation. Tested with build=linux, host=darwin

2012-10-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: The patch itself looks fine, but I wonder how useful it will be. A small question about the patch, why this case in the cross_arch function: + x86_64*darwin*) + echo i386 That doesn't look correct. Back to the more important issue o

[issue14892] 'import readline' hangs when launching with '&' on BSD and OS X

2012-10-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've just tested this on OSX 10.8.2 and the problem is not present there (that is, 'python -c "import deadline" &' does not hang) The problem is present on OSX 10.6.8, and when using ksh(1) you can see why the process is st

[issue13376] readline: pre_input_hook not getting called

2012-10-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: 1) Issue is still present with libedit on OSX 10.8 2) Libedit on OSX doesn't call rl_pre_input_hook when using the '#if defined(HAVE_RL_CALLBACK) && defined(HAVE_SELECT)' branch in the readline extension (that is, not calling

[issue1248658] dir should accept dirproxies for __dict__

2012-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is not relevant for supported python releases: in python 2.6 and later my usecase can be implemented using the magic method __dir__. I'm therefore closing this issue. -- resolution: -> rejected status: open -

[issue9556] Specifying the time a TimedRotatingFileHandler rotates

2012-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: An 'atTime' argument would work. I'm currently using a subclass of BaseRotatingHandler that implements just the 'MIDNIGHT' option of TimedRotatingFileHandler with a rotation hour argument. The attached patch is a first attempt at

[issue16315] Support xz compression in Mac build script

2012-10-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: For the record: I agree with Ned, the patch is not needed at this time and won't work as is anyway (in particular: tar on OSX does not have an 'J' option, so even if you install the lzma tools the p

[issue15498] Eliminate the use of deprecated OS X APIs in getpath.c

2012-10-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Apple seems to have switched to using dlopen in their version of getpath.c (see <http://www.opensource.apple.com/source/python/python-60.3/2.7/fix/getpath.c.ed>, this is the version in OSX 10.8.2) This causes a problem for some people, as noticed

[issue20999] setlocale, getlocale succession --> ValueError or (None, None)

2014-03-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: The locale issue is that on a default (us english) install of 10.9 the following locale related environment variables are set: $ set | grep UTF LANG=en_US.UTF-8 LC_CTYPE=UTF-8 The locale module doesn't understand the LC_CTYPE setting, and this appears t

[issue17128] OS X system openssl deprecated - installer should build local libssl

2014-03-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: The link below contains a script for building fat binaries for openssl. There's nothing surprising in the script, just building multiple times and then merging the result using lipo. https://gist.github.com/foozmeat/5154962 BTW. I'm not propos

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2014-03-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I didn't get this on my previous system (which was basically a 10.4 system updated through 10.5, 10.7, ..., to 10.9), but did get it on my current system, which has a fresh 10.9 install where I did not use the migration assistent to migrate settings.

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2014-03-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: With the following C code: #include #include int main(void) { char* res = setlocale(LC_CTYPE, "UTF-8"); printf("Result: %s\n", res); res = setlocale(LC_CTYPE, "UTF-9"); printf("Result: %s\n

[issue21035] Python's HTTP server implementations hangs after 16.343 requests on MacOSX

2014-03-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: You could trace using dtruss (as root), which behaves similarly to strace. What happens when you first set "http_proxy" in the environment: $ env http_proxy= python -m SimpleHTTPServer If that doesn't cause problems the hang is caused

[issue21122] CPython fails to build modules with LLVM LTO on Mac OS X

2014-04-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've used -O4 for extensions in the past (which until recently implied LTO) and that worked fine. I'm pretty sure that I haven't used LTO for python itself, apart from a some tests with an early version llvm-gcc where using LTO for building

[issue21122] CPython fails to build modules with LLVM LTO on Mac OS X

2014-04-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: Have you tried the -export_dynamic option for ld(1): -export_dynamic Preserves all global symbols in main executables during LTO. Without this option, Link Time Optimization is allowed to inline and remove global functions. This

[issue21122] CPython fails to build modules with LLVM LTO on Mac OS X

2014-04-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: This works for me (with a separate build directory): CC=clang CXX=clang++ CFLAGS="-g -flto" LDFLAGS="-flto -Wl,-export_dynamic" ../configure This is on OSX 10.9.2, with Xcode 5.1, and clang --version says: $ clang --version Apple LLV

[issue21035] Python's HTTP server implementations hangs after 16.343 requests on MacOSX

2014-04-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: This could be related to a problem described on this blog: <http://savanne.be/1035-benchmarking-on-osx-http-timeouts/> As such this appears to be a platform issue and not a python one. -- ___ Python tracker

[issue21381] Python 3.4+ interpreter built on/with OS X 10.7 deployment target segfaults on 10.8+

2014-04-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: The problem in Issue18075 depends on the amount of C stack used on average during recursion because unlike Windows the Unix ports don't test if the end of the stack is reached but just check for a maximum recursion count. It could well be that the pr

[issue21121] -Werror=declaration-after-statement is added even for extension modules through setup.py

2014-05-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is the same issue as Issue18211. As that issue doesn't have a patch and this one does, I'm closing Issue18211 as a duplicate. -- nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.o

[issue18211] -Werror=statement-after-declaration problem

2014-05-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: Closing this one because Issue21121 contains a usable patch. -- resolution: -> duplicate superseder: -> -Werror=declaration-after-statement is added even for extension modules through setup.py ___ Python t

[issue18211] -Werror=statement-after-declaration problem

2014-05-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: Sigh. Actually closing doesn't work due to the dependency :-( -- ___ Python tracker <http://bugs.python.org/issue18211> ___ ___

[issue21121] -Werror=declaration-after-statement is added even for extension modules through setup.py

2014-05-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: I share Ned's sentiment on this. The amount of information exposed through sysconfig is too large as it is because a lot of that information is only useful during the built of python itself. I'm pretty sure that have been patches in the past w

[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: The patch looks good. -- ___ Python tracker <http://bugs.python.org/issue21538> ___ ___ Python-bugs-list mailing list Unsub

[issue21571] Python build should check CPATH, C_INCLUDE_PATH for module dependencies

2014-05-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm pretty sure that I wrote the code Ned refers to, and that's indeed only targeting darwin to avoid breaking other platforms. That code could easily be made actively globally though, the only reason I didn't do so at the time is we were sti

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2014-05-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: Isn't Modules/Setup used for builtin modules? The proposed configure flags are easier to find because similar flags are used by other projects using autoconf. Note that on OSX you could use "CFLAGS=-I/path/to/ssl/include LDFLAGS=-L/path/

[issue21613] Installer for mac doesn't store the installation location

2014-05-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: According to the manpage pkgutil is used with flat packages. The Python installer users older bundle-style packages. -- nosy: +ned.deily ___ Python tracker <http://bugs.python.org/issue21

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) <= sizeof(long)

2012-11-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: The patch should work on OSX, although I haven't actually tested it yet. I've verified that sizeof(uid_t) and sizeof(gid_t) are the same for x86_64 and i386, which means SIZEOF_UID_T doesn't have to be added to pymacconfig.h. A smal nit wit

[issue14892] 'import readline' hangs when launching with '&' on BSD and OS X

2012-11-30 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/issue14892> ___ ___ Pyth

<    12   13   14   15   16   17   18   19   20   21   >