[issue9020] 2.7: eval hangs on AIX

2010-06-17 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: I traced the "infinite loop" to tokenizer.c:tok_get around line 1368: while (Py_ISALNUM(c) || c == '_') { c = tok_nextc(tok); } Adding a `printf` statement at the beginning of the loop: printf(&

[issue9020] 2.7: eval hangs on AIX

2010-06-17 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Py_CHARMASK(c) = 4294967295 And I think I found the problem: from Include/Python.h /* Convert a possibly signed character to a nonnegative int */ /* XXX This assumes characters are 8 bits wide */ #ifdef __CHAR_UNSIGNED__ #define Py_CHARMASK(c) (c

[issue9020] 2.7: eval hangs on AIX because sizeof(char) == 32

2010-06-18 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Ok, I now have a fix for this issue. The reason for sizeof(c) being 4 bytes is because it is defined as `register int` ... and yet `Py_CHARMASK` fails to type-cast `c` to a `char` type, which is exactly what the attached patch does. -- keywords

[issue9020] 2.7: eval hangs on AIX because sizeof(char) == 32

2010-06-18 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: David, to answer your question "How does it behave with the head of the current 2.6 maintenance branch, by the way?", since this bug appears to be in Include/pyctype.h, which file was available only in 2.7+ and 3.x, I don't believe it wi

[issue9020] 2.7: eval hangs on AIX

2010-06-18 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- title: 2.7: eval hangs on AIX because sizeof(char) == 32 -> 2.7: eval hangs on AIX ___ Python tracker <http://bugs.python.org/iss

[issue9020] 2.7: eval hangs on AIX

2010-06-18 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2010-06-18, at 11:47 AM, Eric Smith wrote: > > Eric Smith added the comment: > > I suppose that's correct, although I have no way to test it. I have tested it on Linux 64-bit by running `test.regrtest`. It doesn't seem to

[issue9020] 2.7: eval hangs on AIX

2010-06-18 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2010-06-18, at 11:49 AM, Eric Smith wrote: > It would also be good to get a test case for this. I realize it's difficult, > but that's the sort of change that might get undone some day by someone going > through and "optimi

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-21 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : It appears that we are building 64-bit mac installer starting 2.7. For http://python.org/ftp/python/2.7/python-2.7rc1-macosx10.5-2010-06-07.dmg $ file /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_tkinter.so /Library

[issue8798] tkinter build variants on OSX

2010-06-23 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- nosy: +hobbs, srid, trentm ___ Python tracker <http://bugs.python.org/issue8798> ___ ___ Python-bugs-list mailing list Unsub

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-24 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: We can make this work on OSX 10.6 atleast, using Apple's system Tcl/Tk 8.5. 1. Get a 10.6 build machine with 10.5 SDK 2. Modify setup.py to use openssl 0.9.7 (*not* 0.9.8): search_for_ssl_incs_in=['/Developer/SDKs/MacOSX10.5.sdk/u

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-25 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2010-06-25, at 8:13 AM, Ronald Oussoren wrote: > Sridhar: building using the 10.5 SDK should also work by using > --enable-universalsdk=/Developer/SDKs/MacOSX10.5.sdk. I've recently patched > setup.py and distutils to honor the SD

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-28 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2010-06-27, at 5:48 AM, Ronald Oussoren wrote: > Even when building using an SDK you can use frameworks in /Library/Frameworks > because $SDKROOT/Library/Frameworks is a symlink to the real > /Library/Frameworks. When building on 10.6, we ar

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-28 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: I tried patching setup.py to force linking to Apple's Tcl/Tk: --- python/setup.py.original2010-06-28 11:40:26.0 -0700 +++ python/setup.py 2010-06-28 11:45:39.0 -0700 @@ -1682,6 +1682,15 @@ for F in framework

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-28 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Here's one resolution: 1. Edit setup.py to make INCLUDE/LIB paths for OpenSSL use the SDKROOT (for 10.5+ compat): [...] search_for_ssl_incs_in = ["/Developer/SDKs/MacOSX10.5.sdk/usr/include/" if ON_SNOW_LEOPARD else "/usr/include"

[issue9075] ssl module sets "debug" flag on SSL struct

2010-06-29 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- nosy: +srid ___ Python tracker <http://bugs.python.org/issue9075> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9020] 2.7: eval hangs on AIX

2010-07-03 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: 2.7 final works fine on AIX. This issue can be closed. -- ___ Python tracker <http://bugs.python.org/issue9020> ___ ___

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-07-10 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : Added file: http://bugs.python.org/file17938/idle-use-curr-py.patch ___ Python tracker <http://bugs.python.org/issue6378> ___ ___ Pytho

[issue9224] Distutls fails with MSVC++ 2008on Windows Vista 64bit

2010-07-11 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- nosy: +srid ___ Python tracker <http://bugs.python.org/issue9224> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-07-11 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue7511> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9278] rename 2to3 to 2to3.py

2010-07-16 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : C:\>c:\Python26\Tools\scripts\2to3 'c:\Python26\Tools\scripts\2to3' is not recognized as an internal or external command, operable program or batch file. All other scripts in Tools\scripts directory have .py extension. Only

[issue9278] rename 2to3 & pydoc to 2to3.py & pydoc.py

2010-07-16 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: (Same for pydoc) -- title: rename 2to3 to 2to3.py -> rename 2to3 & pydoc to 2to3.py & pydoc.py ___ Python tracker <http://bugs.python

[issue4499] redefinition of TILDE macro on AIX platform

2010-07-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: I've located the following patch in our ActivePython source tree. $ cat src/patches/3.1/general/aix_tilde.patch --- Include/token.h.orig2008-10-08 11:51:52.0 -0700 +++ python/Include/token.h 2008-10-08 11:52:53.0 -0700 @@

[issue9278] rename 2to3 & pydoc to 2to3.py & pydoc.py

2010-07-19 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: What do you mean by 'commands'? Being able to type '2to3' instead of '2to3.py' on *nix? Want me to open a new feature request for Windows support - perhaps by including a 2to3.bat/pydoc.bat (similar to idle.bat) in C:\Pyt

[issue9306] distutils: raise informative error message when cmd_class is None

2010-07-19 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : Current I see this: File "/opt/ActivePython-2.7/lib/python2.7/distutils/dist.py", line 806, in get_command_class klass = self.cmdclass.get(command) AttributeError: 'NoneType' object has no attribute 'get' more conte

[issue7231] Windows installer does not add \Scripts folder to the path

2010-07-19 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- components: +Windows nosy: +srid type: behavior -> feature request versions: +Python 3.3 -Python 2.4, Python 2.5, Python 2.6, Python 3.0, Python 3.1 ___ Python tracker <http://bugs.python.org/iss

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-07-20 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: BTW, ActivePython (2.6 and 2.7 at the moment) includes this patched idle.bat. The start menu shortcut launches it. -- ___ Python tracker <http://bugs.python.org/issue6

[issue9278] rename 2to3 & pydoc to 2to3.py & pydoc.py

2010-07-20 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Ah, so the python.org installers do have the .py extension for these scripts. Only ActivePython doesn't. Perhaps msilib (something that we don't use) does the rename. Sorry for the confusion. --

[issue8286] distutils: path '[...]' cannot end with '/' -- need better error message

2010-07-21 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Repro steps on a Windows machine: 1. pip install --no-install django-navbar==0.2 Yes, it seems like a bug in the MANIFEST file of the django-navbar project (which is not mine) that seems to have been fixed in the subsequent 0.3 release. > at best

[issue7742] please avoid 'which' in Modules/ld_so_aix

2010-07-26 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2010-07-22, at 11:56 AM, Stefan Krah wrote: > > Stefan Krah added the comment: > > I'm not sure this should be changed: > > 1) Why is .cshrc sourced? It should only get sourced for a login > shell. /usr/bin/which

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure

2010-08-04 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : I cannot find correct repro steps for this, but: /Library/Frameworks/Python.framework/Versions/2.7/bin/python" -B -s -c "import sys;print('%d.%d' % tuple(sys.version_info)[:2]) Traceback (most recent call last): File

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure

2010-08-04 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- components: +Macintosh versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue9516> ___ ___ Python-bugs-list m

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure

2010-08-09 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: We build ActivePython 2.7 on Mac as follows: $ export MACOSX_DEPLOYMENT_TARGET=10.5 $ ./configure --enable-framework --enable-universalsdk=/Developer/SDKs/MacOSX10.5.sdk/ --with-universal-archs=intel $ make (the environment variable is also

<    1   2   3   4