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.000000000
+1030
+++ sysconfig.py 2012-01-07 19:03:00.000000000 +1030
@@ -46,7 +46,7 @@
'scripts': '{base}/Scripts',
'data' : '{base}',
},
- 'os2_home': {
+ 'os2_user': {
'stdlib': '{userbase}/lib/python{py_version_short}',
'platstdlib': '{userbase}/lib/python{py_version_short}',
'purelib': '{userbase}/lib/python{py_version_short}/site-packages',
@@ -413,9 +413,9 @@
_CONFIG_VARS['platbase'] = _EXEC_PREFIX
_CONFIG_VARS['projectbase'] = _PROJECT_BASE

- if os.name in ('nt', 'os2'):
+ if os.name in ('nt'):
_init_non_posix(_CONFIG_VARS)
- if os.name == 'posix':
+ if os.name in ('posix', 'os2'):
_init_posix(_CONFIG_VARS)

Submit a patch on the tracker, preferably as a file rather than cut and paste.

--
Terry Jan Reedy

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to