[Python-Dev] Compiling 2.7.2 on OS/2 (original) (raw)

Paul Smedley paul at smedley.id.au
Sun Jan 8 00:47:59 CET 2012


Hi Terry,

On 07/01/12 19:47, Terry Reedy wrote:

On 1/7/2012 3:48 AM, Paul Smedley wrote:

using initposix() for 'os2' instead of initnonposix 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.000000000 +1030 +++ sysconfig.py 2012-01-07 19:03:00.000000000 +1030 @@ -46,7 +46,7 @@ 'scripts': '{base}/Scripts', 'data' : '{base}', }, - 'os2home': { + 'os2user': { 'stdlib': '{userbase}/lib/python{pyversionshort}', 'platstdlib': '{userbase}/lib/python{pyversionshort}', 'purelib': '{userbase}/lib/python{pyversionshort}/site-packages', @@ -413,9 +413,9 @@ CONFIGVARS['platbase'] = EXECPREFIX CONFIGVARS['projectbase'] = PROJECTBASE - if os.name in ('nt', 'os2'): + if os.name in ('nt'): initnonposix(CONFIGVARS) - if os.name == 'posix': + if os.name in ('posix', 'os2'): initposix(CONFIGVARS) Submit a patch on the tracker, preferably as a file rather than cut and paste. Will do right now.

Cheers,

Paul



More information about the Python-Dev mailing list