Changeset 3402


Ignore:
Timestamp:
Jun 11, 2007, 12:50:36 AM (18 years ago)
Author:
bird
Message:

os2emx -> os2knix.

Location:
trunk/essentials/dev-lang/python
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/dev-lang/python/Lib/distutils/ccompiler.py

    r3225 r3402  
    10261026    def debug_print (self, msg):
    10271027        from distutils.debug import DEBUG
    1028         if DEBUG:
    1029             print msg
     1028        # if DEBUG:
     1029        print msg
    10301030
    10311031    def warn (self, msg):
     
    10591059    # compiler
    10601060    ('cygwin.*', 'unix'),
    1061     ('os2emx', 'emx'),
     1061    ('os2knix', 'unix'),
     1062    #('os2emx', 'emx'), - revert later.
    10621063
    10631064    # OS name mappings
  • trunk/essentials/dev-lang/python/Lib/distutils/unixccompiler.py

    r3225 r3402  
    120120    dylib_lib_extension = ".dylib"
    121121    static_lib_format = shared_lib_format = dylib_lib_format = "lib%s%s"
    122     if sys.platform == "cygwin":
     122    if sys.platform == "cygwin" or sys.platform == "os2emx":
    123123        exe_extension = ".exe"
    124124
  • trunk/essentials/dev-lang/python/Lib/os.py

    r3225 r3402  
    7575    except ImportError:
    7676        pass
    77     if sys.version.find('EMX GCC') == -1:
     77    if sys.version.find('EMX GCC') == -1 and sys.platform != 'os2knix':
    7878        import ntpath as path
    7979    else:
  • trunk/essentials/dev-lang/python/Lib/popen2.py

    r3225 r3402  
    136136
    137137
    138 if sys.platform[:3] == "win" or sys.platform == "os2emx":
     138if sys.platform[:3] == "win" or sys.platform == "os2emx" or sys.platform == "os2knix":
    139139    # Some things don't make sense on non-Unix platforms.
    140140    del Popen3, Popen4
  • trunk/essentials/dev-lang/python/Lib/tempfile.py

    r3390 r3402  
    437437    return _TemporaryFileWrapper(file, name)
    438438
    439 if _os.name != 'posix' or _os.sys.platform == 'cygwin' or _os.sys.platform == 'os2emx':
     439if _os.name != 'posix' or _os.sys.platform == 'cygwin' or _os.sys.platform == 'os2emx' or _os.sys.platform == 'os2knix':
    440440    # On non-POSIX and Cygwin systems, assume that we cannot unlink a file
    441441    # while it is open.
  • trunk/essentials/dev-lang/python/Lib/test/regrtest.py

    r3225 r3402  
    11811181        test_sunaudiodev
    11821182        """,
     1183    'os2knix':
     1184        """
     1185        test_al
     1186        test_applesingle
     1187        test_audioop
     1188        test_bsddb185
     1189        test_bsddb3
     1190        test_cd
     1191        test_cl
     1192        test_commands
     1193        test_dl
     1194        test_gl
     1195        test_imgfile
     1196        test_linuxaudiodev
     1197        test_mhlib
     1198        test_mmap
     1199        test_nis
     1200        test_openpty
     1201        test_ossaudiodev
     1202        test_pty
     1203        test_resource
     1204        test_sqlite
     1205        test_startfile
     1206        test_sunaudiodev
     1207        """,
    11831208    'freebsd4':
    11841209        """
  • trunk/essentials/dev-lang/python/Lib/test/test_tempfile.py

    r3225 r3402  
    265265        mode = stat.S_IMODE(os.stat(file.name).st_mode)
    266266        expected = 0600
    267         if sys.platform in ('win32', 'os2emx', 'mac'):
     267        if sys.platform in ('win32', 'os2emx', 'os2knix', 'mac'):
    268268            # There's no distinction among 'user', 'group' and 'world';
    269269            # replicate the 'user' bits.
     
    484484            mode &= 0777 # Mask off sticky bits inherited from /tmp
    485485            expected = 0700
    486             if sys.platform in ('win32', 'os2emx', 'mac'):
     486            if sys.platform in ('win32', 'os2emx', 'os2knix', 'mac'):
    487487                # There's no distinction among 'user', 'group' and 'world';
    488488                # replicate the 'user' bits.
  • trunk/essentials/dev-lang/python/Makefile.pre.in

    r3399 r3402  
    409409        $(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
    410410
    411 ifeq ($(MACHDEP),os2emx) # bird hack!   
     411ifneq ($(filter os2emx os2knix,$(MACHDEP)),) # bird hack!
    412412$(DLLLIBRARY) $(LDLIBRARY): $(LIBRARY_OBJS)
    413413        $(LDSHARED) -o $(DLLLIBRARY) $^ $(LIBS) $(MODLIBS) $(SYSLIBS)
  • trunk/essentials/dev-lang/python/configure.in

    r3400 r3402  
    184184        atheos*) MACHDEP="atheos";;
    185185        irix646) MACHDEP="irix6";;
    186         os2*|OS/2*|emx*) MACHDEP="os2emx";;
     186        os2*|OS/2*|emx*) MACHDEP="os2knix";;
    187187
    188188        '')     MACHDEP="unknown";;
     
    34193419if test ! -f Modules/Setup
    34203420then
    3421         if test "$MACHDEP" = "os2emx"; then
     3421        if test "$MACHDEP" = "os2emx"  -o  "$MACHDEP" = "os2knix"; then
    34223422        cp $srcdir/PC/os2emx/Setup.os2emx Modules/Setup
    34233423    else
Note: See TracChangeset for help on using the changeset viewer.