| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e1b0287 commit 0693063
16 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1086,19 +1086,16 @@ other utility module. | |||
| 1086 | 1086 | ||
| 1087 | 1087 | Return a string that identifies the current platform. This is used mainly to | |
| 1088 | 1088 | distinguish platform-specific build directories and platform-specific built | |
| 1089 | - distributions. Typically includes the OS name and version and the architecture | ||
| 1090 | - (as supplied by 'os.uname()'), although the exact information included depends | ||
| 1091 | - on the OS; eg. for IRIX the architecture isn't particularly important (IRIX only | ||
| 1092 | - runs on SGI hardware), but for Linux the kernel version isn't particularly | ||
| 1093 | - important. | ||
| 1089 | + distributions. Typically includes the OS name and version and the | ||
| 1090 | + architecture (as supplied by 'os.uname()'), although the exact information | ||
| 1091 | + included depends on the OS; e.g., on Linux, the kernel version isn't | ||
| 1092 | + particularly important. | ||
| 1094 | 1093 | ||
| 1095 | 1094 | Examples of returned values: | |
| 1096 | 1095 | ||
| 1097 | 1096 | * ``linux-i586`` | |
| 1098 | 1097 | * ``linux-alpha`` | |
| 1099 | 1098 | * ``solaris-2.6-sun4u`` | |
| 1100 | - * ``irix-5.3`` | ||
| 1101 | - * ``irix64-6.2`` | ||
| 1102 | 1099 | ||
| 1103 | 1100 | For non-POSIX platforms, currently just returns ``sys.platform``. | |
| 1104 | 1101 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -173,18 +173,15 @@ Other functions | |||
| 173 | 173 | ||
| 174 | 174 | This is used mainly to distinguish platform-specific build directories and | |
| 175 | 175 | platform-specific built distributions. Typically includes the OS name and | |
| 176 | - version and the architecture (as supplied by :func:`os.uname`), although the | ||
| 177 | - exact information included depends on the OS; e.g. for IRIX the architecture | ||
| 178 | - isn't particularly important (IRIX only runs on SGI hardware), but for Linux | ||
| 179 | - the kernel version isn't particularly important. | ||
| 176 | + version and the architecture (as supplied by 'os.uname()'), although the | ||
| 177 | + exact information included depends on the OS; e.g., on Linux, the kernel | ||
| 178 | + version isn't particularly important. | ||
| 180 | 179 | ||
| 181 | 180 | Examples of returned values: | |
| 182 | 181 | ||
| 183 | 182 | - linux-i586 | |
| 184 | 183 | - linux-alpha (?) | |
| 185 | 184 | - solaris-2.6-sun4u | |
| 186 | - - irix-5.3 | ||
| 187 | - - irix64-6.2 | ||
| 188 | 185 | ||
| 189 | 186 | Windows will return one of: | |
| 190 | 187 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,14 +51,6 @@ def gcv(v): | |||
| 51 | 51 | ||
| 52 | 52 | sysconfig.get_config_var = old_gcv | |
| 53 | 53 | ||
| 54 | - # irix646 | ||
| 55 | - sys.platform = 'irix646' | ||
| 56 | - self.assertEqual(self.cc.rpath_foo(), ['-rpath', '/foo']) | ||
| 57 | - | ||
| 58 | - # osf1V5 | ||
| 59 | - sys.platform = 'osf1V5' | ||
| 60 | - self.assertEqual(self.cc.rpath_foo(), ['-rpath', '/foo']) | ||
| 61 | - | ||
| 62 | 54 | # GCC GNULD | |
| 63 | 55 | sys.platform = 'bar' | |
| 64 | 56 | def gcv(v): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -233,8 +233,6 @@ def runtime_library_dir_option(self, dir): | |||
| 233 | 233 | if self._is_gcc(compiler): | |
| 234 | 234 | return ["-Wl,+s", "-L" + dir] | |
| 235 | 235 | return ["+s", "-L" + dir] | |
| 236 | - elif sys.platform[:7] == "irix646" or sys.platform[:6] == "osf1V5": | ||
| 237 | - return ["-rpath", dir] | ||
| 238 | 236 | else: | |
| 239 | 237 | if self._is_gcc(compiler): | |
| 240 | 238 | # gcc on non-GNU systems does not need -Wl, but can | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,28 +16,25 @@ | |||
| 16 | 16 | from distutils.errors import DistutilsByteCompileError | |
| 17 | 17 | ||
| 18 | 18 | def get_platform (): | |
| 19 | - """Return a string that identifies the current platform. This is used | ||
| 20 | - mainly to distinguish platform-specific build directories and | ||
| 21 | - platform-specific built distributions. Typically includes the OS name | ||
| 22 | - and version and the architecture (as supplied by 'os.uname()'), | ||
| 23 | - although the exact information included depends on the OS; eg. for IRIX | ||
| 24 | - the architecture isn't particularly important (IRIX only runs on SGI | ||
| 25 | - hardware), but for Linux the kernel version isn't particularly | ||
| 26 | - important. | ||
| 19 | + """Return a string that identifies the current platform. This is used mainly to | ||
| 20 | + distinguish platform-specific build directories and platform-specific built | ||
| 21 | + distributions. Typically includes the OS name and version and the | ||
| 22 | + architecture (as supplied by 'os.uname()'), although the exact information | ||
| 23 | + included depends on the OS; eg. on Linux, the kernel version isn't | ||
| 24 | + particularly important. | ||
| 27 | 25 | ||
| 28 | 26 | Examples of returned values: | |
| 29 | 27 | linux-i586 | |
| 30 | 28 | linux-alpha (?) | |
| 31 | 29 | solaris-2.6-sun4u | |
| 32 | - irix-5.3 | ||
| 33 | - irix64-6.2 | ||
| 34 | 30 | ||
| 35 | 31 | Windows will return one of: | |
| 36 | 32 | win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) | |
| 37 | 33 | win-ia64 (64bit Windows on Itanium) | |
| 38 | 34 | win32 (all others - specifically, sys.platform is returned) | |
| 39 | 35 | ||
| 40 | 36 | For other non-POSIX platforms, currently just returns 'sys.platform'. | |
| 37 | + | ||
| 41 | 38 | """ | |
| 42 | 39 | if os.name == 'nt': | |
| 43 | 40 | # sniff sys.version for architecture. | |
@@ -87,8 +84,6 @@ def get_platform (): | |||
| 87 | 84 | bitness = {2147483647:"32bit", 9223372036854775807:"64bit"} | |
| 88 | 85 | machine += ".%s" % bitness[sys.maxsize] | |
| 89 | 86 | # fall through to standard osname-release-machine representation | |
| 90 | - elif osname[:4] == "irix": # could be "irix64"! | ||
| 91 | - return "%s-%s" % (osname, release) | ||
| 92 | 87 | elif osname[:3] == "aix": | |
| 93 | 88 | return "%s-%s.%s" % (osname, version, release) | |
| 94 | 89 | elif osname[:6] == "cygwin": | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -599,26 +599,23 @@ def get_platform(): | |||
| 599 | 599 | """Return a string that identifies the current platform. | |
| 600 | 600 | ||
| 601 | 601 | This is used mainly to distinguish platform-specific build directories and | |
| 602 | - platform-specific built distributions. Typically includes the OS name | ||
| 603 | - and version and the architecture (as supplied by 'os.uname()'), | ||
| 604 | - although the exact information included depends on the OS; eg. for IRIX | ||
| 605 | - the architecture isn't particularly important (IRIX only runs on SGI | ||
| 606 | - hardware), but for Linux the kernel version isn't particularly | ||
| 607 | - important. | ||
| 602 | + platform-specific built distributions. Typically includes the OS name and | ||
| 603 | + version and the architecture (as supplied by 'os.uname()'), although the | ||
| 604 | + exact information included depends on the OS; on Linux, the kernel version | ||
| 605 | + isn't particularly important. | ||
| 608 | 606 | ||
| 609 | 607 | Examples of returned values: | |
| 610 | 608 | linux-i586 | |
| 611 | 609 | linux-alpha (?) | |
| 612 | 610 | solaris-2.6-sun4u | |
| 613 | - irix-5.3 | ||
| 614 | - irix64-6.2 | ||
| 615 | 611 | ||
| 616 | 612 | Windows will return one of: | |
| 617 | 613 | win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) | |
| 618 | 614 | win-ia64 (64bit Windows on Itanium) | |
| 619 | 615 | win32 (all others - specifically, sys.platform is returned) | |
| 620 | 616 | ||
| 621 | 617 | For other non-POSIX platforms, currently just returns 'sys.platform'. | |
| 618 | + | ||
| 622 | 619 | """ | |
| 623 | 620 | if os.name == 'nt': | |
| 624 | 621 | # sniff sys.version for architecture. | |
@@ -666,8 +663,6 @@ def get_platform(): | |||
| 666 | 663 | bitness = {2147483647:"32bit", 9223372036854775807:"64bit"} | |
| 667 | 664 | machine += ".%s" % bitness[sys.maxsize] | |
| 668 | 665 | # fall through to standard osname-release-machine representation | |
| 669 | - elif osname[:4] == "irix": # could be "irix64"! | ||
| 670 | - return "%s-%s" % (osname, release) | ||
| 671 | 666 | elif osname[:3] == "aix": | |
| 672 | 667 | return "%s-%s.%s" % (osname, version, release) | |
| 673 | 668 | elif osname[:6] == "cygwin": | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,12 +24,12 @@ def debug(msg): | |||
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | 26 | def normalize_output(data): | |
| 27 | - # Some operating systems do conversions on newline. We could possibly | ||
| 28 | - # fix that by doing the appropriate termios.tcsetattr()s. I couldn't | ||
| 29 | - # figure out the right combo on Tru64 and I don't have an IRIX box. | ||
| 30 | - # So just normalize the output and doc the problem O/Ses by allowing | ||
| 31 | - # certain combinations for some platforms, but avoid allowing other | ||
| 32 | - # differences (like extra whitespace, trailing garbage, etc.) | ||
| 27 | + # Some operating systems do conversions on newline. We could possibly fix | ||
| 28 | + # that by doing the appropriate termios.tcsetattr()s. I couldn't figure out | ||
| 29 | + # the right combo on Tru64. So, just normalize the output and doc the | ||
| 30 | + # problem O/Ses by allowing certain combinations for some platforms, but | ||
| 31 | + # avoid allowing other differences (like extra whitespace, trailing garbage, | ||
| 32 | + # etc.) | ||
| 33 | 33 | ||
| 34 | 34 | # This is about the best we can do without getting some feedback | |
| 35 | 35 | # from someone more knowledgable. | |
@@ -38,7 +38,6 @@ def normalize_output(data): | |||
| 38 | 38 | if data.endswith(b'\r\r\n'): | |
| 39 | 39 | return data.replace(b'\r\r\n', b'\n') | |
| 40 | 40 | ||
| 41 | - # IRIX apparently turns \n into \r\n. | ||
| 42 | 41 | if data.endswith(b'\r\n'): | |
| 43 | 42 | return data.replace(b'\r\n', b'\n') | |
| 44 | 43 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -399,7 +399,7 @@ def _lanscan_getnode(): | |||
| 399 | 399 | ||
| 400 | 400 | def _netstat_getnode(): | |
| 401 | 401 | """Get the hardware address on Unix by running netstat.""" | |
| 402 | - # This might work on AIX, Tru64 UNIX and presumably on IRIX. | ||
| 402 | + # This might work on AIX, Tru64 UNIX. | ||
| 403 | 403 | try: | |
| 404 | 404 | proc = _popen('netstat', '-ia') | |
| 405 | 405 | if not proc: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + Per PEP 11, support for the IRIX operating system was removed. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -350,9 +350,6 @@ _symtable symtablemodule.c | |||
| 350 | 350 | # The library to link fpectl with is platform specific. | |
| 351 | 351 | # Choose *one* of the options below for fpectl: | |
| 352 | 352 | ||
| 353 | - # For SGI IRIX (tested on 5.3): | ||
| 354 | - #fpectl fpectlmodule.c -lfpe | ||
| 355 | - | ||
| 356 | 353 | # For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2): | |
| 357 | 354 | # (Without the compiler you don't have -lsunmath.) | |
| 358 | 355 | #fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm | |
| Back | FazBrowse Home | New Git URL |
0 commit comments