Re: [Python-Dev] Compiling 2.7.2 on OS/2

2012-01-09 Thread Steven D'Aprano
Victor Stinner wrote: -if os.name in ('nt', 'os2'): +if os.name in ('nt'): This change is wrong: it should be os.name == 'nt'. Or possibly os.name in ('nt', ) (note the comma). -- Steven ___ Python-Dev mailing list Python-Dev@pyth

Re: [Python-Dev] Compiling 2.7.2 on OS/2

2012-01-09 Thread Victor Stinner
> -        if os.name in ('nt', 'os2'): > +        if os.name in ('nt'): This change is wrong: it should be os.name == 'nt'. Victor ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http:/

Re: [Python-Dev] Compiling 2.7.2 on OS/2

2012-01-07 Thread Paul Smedley
Hi Terry, On 07/01/12 19:47, Terry Reedy wrote: On 1/7/2012 3:48 AM, Paul Smedley wrote: using _init_posix() for 'os2' instead of _init_non_posix is the fix for this. sysconfig.py also needs the following changes: --- \dev\Python-2.7.2-o\Lib\sysconfig.py 2012-01-06 19:27:14.0 +1030 ++

Re: [Python-Dev] Compiling 2.7.2 on OS/2

2012-01-07 Thread Terry Reedy
On 1/7/2012 3:48 AM, Paul Smedley wrote: using _init_posix() for 'os2' instead of _init_non_posix is the fix for this. sysconfig.py also needs the following changes: --- \dev\Python-2.7.2-o\Lib\sysconfig.py 2012-01-06 19:27:14.0 +1030 +++ sysconfig.py 2012-01-07 19:03:00.0 +1030

Re: [Python-Dev] Compiling 2.7.2 on OS/2

2012-01-07 Thread Paul Smedley
Hi All, On 06/01/12 10:25, Terry Reedy wrote: On 1/5/2012 3:01 PM, Paul Smedley wrote: File "./setup.py", line 1154, in detect_modules for arg in sysconfig.get_config_var("__CONFIG_ARGS").split()] AttributeError: 'NoneType' object has no attribute 'split' make: *** [sharedmods] Error 1 File

Re: [Python-Dev] Compiling 2.7.2 on OS/2

2012-01-05 Thread Paul Smedley
Hi Terry, On 06/01/12 10:25, Terry Reedy wrote: On 1/5/2012 3:01 PM, Paul Smedley wrote: File "./setup.py", line 1154, in detect_modules for arg in sysconfig.get_config_var("__CONFIG_ARGS").split()] AttributeError: 'NoneType' object has no attribute 'split' make: *** [sharedmods] Error 1 Fi

Re: [Python-Dev] Compiling 2.7.2 on OS/2

2012-01-05 Thread Terry Reedy
On 1/5/2012 3:01 PM, Paul Smedley wrote: File "./setup.py", line 1154, in detect_modules for arg in sysconfig.get_config_var("__CONFIG_ARGS").split()] AttributeError: 'NoneType' object has no attribute 'split' make: *** [sharedmods] Error 1 File "./setup.py", line 1368, in detect_modules if '

Re: [Python-Dev] Compiling 2.7.2 on OS/2

2012-01-05 Thread Paul Smedley
Hi Amaury, On 06/01/12 00:32, Amaury Forgeot d'Arc wrote: 2012/1/5 Paul Smedley mailto:p...@smedley.id.au>> Hi All, I'm working on updating my port of Python 2.6.5 to v2.7.2 for the OS/2 platform. I have python.exe and python27.dll compiling find, but when starting to buil

Re: [Python-Dev] Compiling 2.7.2 on OS/2

2012-01-05 Thread Amaury Forgeot d'Arc
2012/1/5 Paul Smedley > Hi All, > > I'm working on updating my port of Python 2.6.5 to v2.7.2 for the OS/2 > platform. > > I have python.exe and python27.dll compiling find, but when starting to > build sharedmods I'm getting the following error: > running build > running build_ext > Traceback (m