@@ -223,11 +223,6 @@ def finalize_options(self):
223
223
self .library_dirs .append (os .path .join (sys .exec_prefix ,
224
224
'PC' , 'VC6' ))
225
225
226
- # OS/2 (EMX) doesn't support Debug vs Release builds, but has the
227
- # import libraries in its "Config" subdirectory
228
- if os .name == 'os2' :
229
- self .library_dirs .append (os .path .join (sys .exec_prefix , 'Config' ))
230
-
231
226
# for extensions under Cygwin and AtheOS Python's library directory must be
232
227
# appended to library_dirs
233
228
if sys .platform [:6 ] == 'cygwin' or sys .platform [:6 ] == 'atheos' :
@@ -613,9 +608,6 @@ def find_swig(self):
613
608
return fn
614
609
else :
615
610
return "swig.exe"
616
- elif os .name == "os2" :
617
- # assume swig available in the PATH.
618
- return "swig.exe"
619
611
else :
620
612
raise DistutilsPlatformError (
621
613
"I don't know how to find (much less run) SWIG "
@@ -666,9 +658,6 @@ def get_ext_filename(self, ext_name):
666
658
"""
667
659
from distutils .sysconfig import get_config_var
668
660
ext_path = ext_name .split ('.' )
669
- # OS/2 has an 8 character module (extension) limit :-(
670
- if os .name == "os2" :
671
- ext_path [len (ext_path ) - 1 ] = ext_path [len (ext_path ) - 1 ][:8 ]
672
661
# extensions in debug_mode are named 'module_d.pyd' under windows
673
662
so_ext = get_config_var ('SO' )
674
663
if os .name == 'nt' and self .debug :
@@ -689,7 +678,7 @@ def get_export_symbols(self, ext):
689
678
def get_libraries (self , ext ):
690
679
"""Return the list of libraries to link against when building a
691
680
shared extension. On most platforms, this is just 'ext.libraries';
692
- on Windows and OS/2 , we add the Python library (eg. python20.dll).
681
+ on Windows, we add the Python library (eg. python20.dll).
693
682
"""
694
683
# The python library is always needed on Windows. For MSVC, this
695
684
# is redundant, since the library is mentioned in a pragma in
@@ -709,19 +698,6 @@ def get_libraries(self, ext):
709
698
return ext .libraries + [pythonlib ]
710
699
else :
711
700
return ext .libraries
712
- elif sys .platform == "os2emx" :
713
- # EMX/GCC requires the python library explicitly, and I
714
- # believe VACPP does as well (though not confirmed) - AIM Apr01
715
- template = "python%d%d"
716
- # debug versions of the main DLL aren't supported, at least
717
- # not at this time - AIM Apr01
718
- #if self.debug:
719
- # template = template + '_d'
720
- pythonlib = (template %
721
- (sys .hexversion >> 24 , (sys .hexversion >> 16 ) & 0xff ))
722
- # don't extend ext.libraries, it may be shared with other
723
- # extensions, it is a reference to the original list
724
- return ext .libraries + [pythonlib ]
725
701
elif sys .platform [:6 ] == "cygwin" :
726
702
template = "python%d.%d"
727
703
pythonlib = (template %
0 commit comments