Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
06930631
Kaydet (Commit)
06930631
authored
7 years ago
tarafından
Benjamin Peterson
Kaydeden (comit)
GitHub
7 years ago
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove IRIX support (closes bpo-31341) (#3310)
See PEP 11.
üst
e1b0287c
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
36 additions
and
115 deletions
+36
-115
apiref.rst
Doc/distutils/apiref.rst
+4
-7
sysconfig.rst
Doc/library/sysconfig.rst
+3
-6
test_unixccompiler.py
Lib/distutils/tests/test_unixccompiler.py
+0
-8
unixccompiler.py
Lib/distutils/unixccompiler.py
+0
-2
util.py
Lib/distutils/util.py
+7
-12
sysconfig.py
Lib/sysconfig.py
+5
-10
test_pty.py
Lib/test/test_pty.py
+6
-7
uuid.py
Lib/uuid.py
+1
-1
2017-09-04-14-43-46.bpo-31341.XLuZFk.rst
...EWS.d/next/Build/2017-09-04-14-43-46.bpo-31341.XLuZFk.rst
+1
-0
Setup.dist
Modules/Setup.dist
+0
-3
fpectlmodule.c
Modules/fpectlmodule.c
+1
-22
socketmodule.c
Modules/socketmodule.c
+2
-4
objgraph.py
Tools/scripts/objgraph.py
+4
-4
configure
configure
+1
-14
configure.ac
configure.ac
+1
-12
pyconfig.h.in
pyconfig.h.in
+0
-3
No files found.
Doc/distutils/apiref.rst
Dosyayı görüntüle @
06930631
...
...
@@ -1086,19 +1086,16 @@ other utility module.
Return a string that identifies the current platform. This is used mainly to
distinguish platform-specific build directories and platform-specific built
distributions. Typically includes the OS name and version and the architecture
(as supplied by 'os.uname()'), although the exact information included depends
on the OS; eg. for IRIX the architecture isn't particularly important (IRIX only
runs on SGI hardware), but for Linux the kernel version isn't particularly
important.
distributions. Typically includes the OS name and version and the
architecture (as supplied by 'os.uname()'), although the exact information
included depends on the OS; e.g., on Linux, the kernel version isn't
particularly important.
Examples of returned values:
* ``linux-i586``
* ``linux-alpha``
* ``solaris-2.6-sun4u``
* ``irix-5.3``
* ``irix64-6.2``
For non-POSIX platforms, currently just returns ``sys.platform``.
...
...
This diff is collapsed.
Click to expand it.
Doc/library/sysconfig.rst
Dosyayı görüntüle @
06930631
...
...
@@ -173,18 +173,15 @@ Other functions
This is used mainly to distinguish platform-specific build directories and
platform-specific built distributions. Typically includes the OS name and
version and the architecture (as supplied by :func:`os.uname`), although the
exact information included depends on the OS; e.g. for IRIX the architecture
isn't particularly important (IRIX only runs on SGI hardware), but for Linux
the kernel version isn't particularly important.
version and the architecture (as supplied by 'os.uname()'), although the
exact information included depends on the OS; e.g., on Linux, the kernel
version isn't particularly important.
Examples of returned values:
- linux-i586
- linux-alpha (?)
- solaris-2.6-sun4u
- irix-5.3
- irix64-6.2
Windows will return one of:
...
...
This diff is collapsed.
Click to expand it.
Lib/distutils/tests/test_unixccompiler.py
Dosyayı görüntüle @
06930631
...
...
@@ -51,14 +51,6 @@ class UnixCCompilerTestCase(unittest.TestCase):
sysconfig
.
get_config_var
=
old_gcv
# irix646
sys
.
platform
=
'irix646'
self
.
assertEqual
(
self
.
cc
.
rpath_foo
(),
[
'-rpath'
,
'/foo'
])
# osf1V5
sys
.
platform
=
'osf1V5'
self
.
assertEqual
(
self
.
cc
.
rpath_foo
(),
[
'-rpath'
,
'/foo'
])
# GCC GNULD
sys
.
platform
=
'bar'
def
gcv
(
v
):
...
...
This diff is collapsed.
Click to expand it.
Lib/distutils/unixccompiler.py
Dosyayı görüntüle @
06930631
...
...
@@ -233,8 +233,6 @@ class UnixCCompiler(CCompiler):
if
self
.
_is_gcc
(
compiler
):
return
[
"-Wl,+s"
,
"-L"
+
dir
]
return
[
"+s"
,
"-L"
+
dir
]
elif
sys
.
platform
[:
7
]
==
"irix646"
or
sys
.
platform
[:
6
]
==
"osf1V5"
:
return
[
"-rpath"
,
dir
]
else
:
if
self
.
_is_gcc
(
compiler
):
# gcc on non-GNU systems does not need -Wl, but can
...
...
This diff is collapsed.
Click to expand it.
Lib/distutils/util.py
Dosyayı görüntüle @
06930631
...
...
@@ -16,21 +16,17 @@ from distutils import log
from
distutils.errors
import
DistutilsByteCompileError
def
get_platform
():
"""Return a string that identifies the current platform. This is used
mainly to distinguish platform-specific build directories and
platform-specific built distributions. Typically includes the OS name
and version and the architecture (as supplied by 'os.uname()'),
although the exact information included depends on the OS; eg. for IRIX
the architecture isn't particularly important (IRIX only runs on SGI
hardware), but for Linux the kernel version isn't particularly
important.
"""Return a string that identifies the current platform. This is used mainly to
distinguish platform-specific build directories and platform-specific built
distributions. Typically includes the OS name and version and the
architecture (as supplied by 'os.uname()'), although the exact information
included depends on the OS; eg. on Linux, the kernel version isn't
particularly important.
Examples of returned values:
linux-i586
linux-alpha (?)
solaris-2.6-sun4u
irix-5.3
irix64-6.2
Windows will return one of:
win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
...
...
@@ -38,6 +34,7 @@ def get_platform ():
win32 (all others - specifically, sys.platform is returned)
For other non-POSIX platforms, currently just returns 'sys.platform'.
"""
if
os
.
name
==
'nt'
:
# sniff sys.version for architecture.
...
...
@@ -87,8 +84,6 @@ def get_platform ():
bitness
=
{
2147483647
:
"32bit"
,
9223372036854775807
:
"64bit"
}
machine
+=
".
%
s"
%
bitness
[
sys
.
maxsize
]
# fall through to standard osname-release-machine representation
elif
osname
[:
4
]
==
"irix"
:
# could be "irix64"!
return
"
%
s-
%
s"
%
(
osname
,
release
)
elif
osname
[:
3
]
==
"aix"
:
return
"
%
s-
%
s.
%
s"
%
(
osname
,
version
,
release
)
elif
osname
[:
6
]
==
"cygwin"
:
...
...
This diff is collapsed.
Click to expand it.
Lib/sysconfig.py
Dosyayı görüntüle @
06930631
...
...
@@ -599,19 +599,15 @@ def get_platform():
"""Return a string that identifies the current platform.
This is used mainly to distinguish platform-specific build directories and
platform-specific built distributions. Typically includes the OS name
and version and the architecture (as supplied by 'os.uname()'),
although the exact information included depends on the OS; eg. for IRIX
the architecture isn't particularly important (IRIX only runs on SGI
hardware), but for Linux the kernel version isn't particularly
important.
platform-specific built distributions. Typically includes the OS name and
version and the architecture (as supplied by 'os.uname()'), although the
exact information included depends on the OS; on Linux, the kernel version
isn't particularly important.
Examples of returned values:
linux-i586
linux-alpha (?)
solaris-2.6-sun4u
irix-5.3
irix64-6.2
Windows will return one of:
win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
...
...
@@ -619,6 +615,7 @@ def get_platform():
win32 (all others - specifically, sys.platform is returned)
For other non-POSIX platforms, currently just returns 'sys.platform'.
"""
if
os
.
name
==
'nt'
:
# sniff sys.version for architecture.
...
...
@@ -666,8 +663,6 @@ def get_platform():
bitness
=
{
2147483647
:
"32bit"
,
9223372036854775807
:
"64bit"
}
machine
+=
".
%
s"
%
bitness
[
sys
.
maxsize
]
# fall through to standard osname-release-machine representation
elif
osname
[:
4
]
==
"irix"
:
# could be "irix64"!
return
"
%
s-
%
s"
%
(
osname
,
release
)
elif
osname
[:
3
]
==
"aix"
:
return
"
%
s-
%
s.
%
s"
%
(
osname
,
version
,
release
)
elif
osname
[:
6
]
==
"cygwin"
:
...
...
This diff is collapsed.
Click to expand it.
Lib/test/test_pty.py
Dosyayı görüntüle @
06930631
...
...
@@ -24,12 +24,12 @@ else:
def
normalize_output
(
data
):
# Some operating systems do conversions on newline. We could possibly
#
fix that by doing the appropriate termios.tcsetattr()s. I couldn'
t
#
figure out the right combo on Tru64 and I don't have an IRIX box.
#
So just normalize the output and doc the problem O/Ses by allowing
#
certain combinations for some platforms, but avoid allowing other
#
differences (like extra whitespace, trailing garbage,
etc.)
# Some operating systems do conversions on newline. We could possibly
fix
#
that by doing the appropriate termios.tcsetattr()s. I couldn't figure ou
t
#
the right combo on Tru64. So, just normalize the output and doc the
#
problem O/Ses by allowing certain combinations for some platforms, but
#
avoid allowing other differences (like extra whitespace, trailing garbage,
# etc.)
# This is about the best we can do without getting some feedback
# from someone more knowledgable.
...
...
@@ -38,7 +38,6 @@ def normalize_output(data):
if
data
.
endswith
(
b
'
\r\r\n
'
):
return
data
.
replace
(
b
'
\r\r\n
'
,
b
'
\n
'
)
# IRIX apparently turns \n into \r\n.
if
data
.
endswith
(
b
'
\r\n
'
):
return
data
.
replace
(
b
'
\r\n
'
,
b
'
\n
'
)
...
...
This diff is collapsed.
Click to expand it.
Lib/uuid.py
Dosyayı görüntüle @
06930631
...
...
@@ -399,7 +399,7 @@ def _lanscan_getnode():
def
_netstat_getnode
():
"""Get the hardware address on Unix by running netstat."""
# This might work on AIX, Tru64 UNIX
and presumably on IRIX
.
# This might work on AIX, Tru64 UNIX.
try
:
proc
=
_popen
(
'netstat'
,
'-ia'
)
if
not
proc
:
...
...
This diff is collapsed.
Click to expand it.
Misc/NEWS.d/next/Build/2017-09-04-14-43-46.bpo-31341.XLuZFk.rst
0 → 100644
Dosyayı görüntüle @
06930631
Per PEP 11, support for the IRIX operating system was removed.
This diff is collapsed.
Click to expand it.
Modules/Setup.dist
Dosyayı görüntüle @
06930631
...
...
@@ -350,9 +350,6 @@ _symtable symtablemodule.c
# The library to link fpectl with is platform specific.
# Choose *one* of the options below for fpectl:
# For SGI IRIX (tested on 5.3):
#fpectl fpectlmodule.c -lfpe
# For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2):
# (Without the compiler you don't have -lsunmath.)
#fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm
...
...
This diff is collapsed.
Click to expand it.
Modules/fpectlmodule.c
Dosyayı görüntüle @
06930631
...
...
@@ -111,29 +111,8 @@ static void fpe_reset(Sigfunc *handler)
* handler for SIGFPE to the given handler.
*/
/*-- IRIX -----------------------------------------------------------------*/
#if defined(sgi)
/* See man page on handle_sigfpes -- must link with -lfpe
* My usage doesn't follow the man page exactly. Maybe somebody
* else can explain handle_sigfpes to me....
* cc -c -I/usr/local/python/include fpectlmodule.c
* ld -shared -o fpectlmodule.so fpectlmodule.o -lfpe
*/
#include <sigfpe.h>
typedef
void
user_routine
(
unsigned
[
5
],
int
[
2
]);
typedef
void
abort_routine
(
unsigned
long
);
handle_sigfpes
(
_OFF
,
0
,
(
user_routine
*
)
0
,
_TURN_OFF_HANDLER_ON_ERROR
,
NULL
);
handle_sigfpes
(
_ON
,
_EN_OVERFL
|
_EN_DIVZERO
|
_EN_INVALID
,
(
user_routine
*
)
0
,
_ABORT_ON_ERROR
,
NULL
);
PyOS_setsig
(
SIGFPE
,
handler
);
/*-- SunOS and Solaris ----------------------------------------------------*/
#
el
if defined(sun)
#if defined(sun)
/* References: ieee_handler, ieee_sun, ieee_functions, and ieee_flags
man pages (SunOS or Solaris)
cc -c -I/usr/local/python/include fpectlmodule.c
...
...
This diff is collapsed.
Click to expand it.
Modules/socketmodule.c
Dosyayı görüntüle @
06930631
...
...
@@ -268,10 +268,8 @@ http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/net/getaddrinfo.c.diff?r1=1.82&
#include <netdb.h>
#endif
/* Irix 6.5 fails to define this variable at all. This is needed
for both GCC and SGI's compiler. I'd say that the SGI headers
are just busted. Same thing for Solaris. */
#if (defined(__sgi) || defined(sun)) && !defined(INET_ADDRSTRLEN)
/* Solaris fails to define this variable at all. */
#if defined(sun) && !defined(INET_ADDRSTRLEN)
#define INET_ADDRSTRLEN 16
#endif
...
...
This diff is collapsed.
Click to expand it.
Tools/scripts/objgraph.py
Dosyayı görüntüle @
06930631
...
...
@@ -2,8 +2,8 @@
# objgraph
#
# Read "nm -o" input
(on IRIX: "nm -Bo") of a set of libraries or module
s
#
and print various
interesting listings, such as:
# Read "nm -o" input
of a set of libraries or modules and print variou
s
# interesting listings, such as:
#
# - which names are used but not defined in the set (and used where),
# - which names are defined in the set (and where),
...
...
@@ -15,7 +15,7 @@
# -d: print callees per objectfile
# -u: print usage of undefined symbols
# If none of -cdu is specified, all are assumed.
# Use "nm -o" to generate the input
(on IRIX: "nm -Bo"),
# Use "nm -o" to generate the input
# e.g.: nm -o /lib/libc.a | objgraph
...
...
@@ -161,7 +161,7 @@ def main():
print
(
'-d: print callees per objectfile'
)
print
(
'-u: print usage of undefined symbols'
)
print
(
'If none of -cdu is specified, all are assumed.'
)
print
(
'Use "nm -o" to generate the input
(on IRIX: "nm -Bo"),
'
)
print
(
'Use "nm -o" to generate the input'
)
print
(
'e.g.: nm -o /lib/libc.a | objgraph'
)
return
1
optu
=
optc
=
optd
=
0
...
...
This diff is collapsed.
Click to expand it.
configure
Dosyayı görüntüle @
06930631
...
...
@@ -2993,12 +2993,6 @@ $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
$as_echo "#define _BSD_TYPES 1" >>confdefs.h
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
# them.
...
...
@@ -3298,7 +3292,6 @@ then
linux*) MACHDEP="linux";;
cygwin*) MACHDEP="cygwin";;
darwin*) MACHDEP="darwin";;
irix646) MACHDEP="irix6";;
'') MACHDEP="unknown";;
esac
fi
...
...
@@ -9136,7 +9129,7 @@ fi
$as_echo "$SHLIB_SUFFIX" >&6; }
# LDSHARED is the ld *command* used to create shared library
# -- "cc -G" on SunOS 5.x
, "ld -shared" on IRIX 5
# -- "cc -G" on SunOS 5.x
.
# (Shared libraries in this instance are shared modules to be loaded into
# Python, as opposed to building Python itself as a shared library.)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
...
...
@@ -9148,8 +9141,6 @@ then
BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
;;
IRIX/5*) LDSHARED="ld -shared";;
IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
SunOS/5*)
if test "$GCC" = "yes" ; then
LDSHARED='$(CC) -shared'
...
...
@@ -9309,10 +9300,6 @@ then
then CCSHARED="-fPIC"
else CCSHARED="-Kpic -belf"
fi;;
IRIX*/6*) case $CC in
*gcc*) CCSHARED="-shared";;
*) CCSHARED="";;
esac;;
esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
...
...
This diff is collapsed.
Click to expand it.
configure.ac
Dosyayı görüntüle @
06930631
...
...
@@ -133,10 +133,6 @@ AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features]
# them.
AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library features])
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
AC_DEFINE(_BSD_TYPES, 1, [Define on Irix to enable u_int])
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
# them.
...
...
@@ -406,7 +402,6 @@ then
linux*) MACHDEP="linux";;
cygwin*) MACHDEP="cygwin";;
darwin*) MACHDEP="darwin";;
irix646) MACHDEP="irix6";;
'') MACHDEP="unknown";;
esac
fi
...
...
@@ -2402,7 +2397,7 @@ fi
AC_MSG_RESULT($SHLIB_SUFFIX)
# LDSHARED is the ld *command* used to create shared library
# -- "cc -G" on SunOS 5.x
, "ld -shared" on IRIX 5
# -- "cc -G" on SunOS 5.x
.
# (Shared libraries in this instance are shared modules to be loaded into
# Python, as opposed to building Python itself as a shared library.)
AC_MSG_CHECKING(LDSHARED)
...
...
@@ -2413,8 +2408,6 @@ then
BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
;;
IRIX/5*) LDSHARED="ld -shared";;
IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
SunOS/5*)
if test "$GCC" = "yes" ; then
LDSHARED='$(CC) -shared'
...
...
@@ -2572,10 +2565,6 @@ then
then CCSHARED="-fPIC"
else CCSHARED="-Kpic -belf"
fi;;
IRIX*/6*) case $CC in
*gcc*) CCSHARED="-shared";;
*) CCSHARED="";;
esac;;
esac
fi
AC_MSG_RESULT($CCSHARED)
...
...
This diff is collapsed.
Click to expand it.
pyconfig.h.in
Dosyayı görüntüle @
06930631
...
...
@@ -1415,9 +1415,6 @@
/* Define on OpenBSD to activate all library features */
#undef _BSD_SOURCE
/* Define on Irix to enable u_int */
#undef _BSD_TYPES
/* Define on Darwin to activate all library features */
#undef _DARWIN_C_SOURCE
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment