Skip to content

Commit 6103ab1

Browse files
committed
Remove AtheOS support, as per PEP 11 (which claims that all code was removed in Python 3.0).
1 parent 194fcf2 commit 6103ab1

File tree

16 files changed

+31
-1693
lines changed

16 files changed

+31
-1693
lines changed

Doc/library/sys.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,6 @@ always available.
576576
Mac OS X ``'darwin'``
577577
OS/2 ``'os2'``
578578
OS/2 EMX ``'os2emx'``
579-
AtheOS ``'atheos'``
580579
================ ===========================
581580

582581

Lib/distutils/command/build_ext.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,9 @@ def finalize_options(self):
262262
if os.name == 'os2':
263263
self.library_dirs.append(os.path.join(sys.exec_prefix, 'Config'))
264264

265-
# for extensions under Cygwin and AtheOS Python's library directory must be
265+
# for extensions under Cygwin Python's library directory must be
266266
# appended to library_dirs
267-
if sys.platform[:6] == 'cygwin' or sys.platform[:6] == 'atheos':
267+
if sys.platform[:6] == 'cygwin':
268268
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
269269
# building third party extensions
270270
self.library_dirs.append(os.path.join(sys.prefix, "lib",
@@ -776,22 +776,6 @@ def get_libraries(self, ext):
776776
# don't extend ext.libraries, it may be shared with other
777777
# extensions, it is a reference to the original list
778778
return ext.libraries + [pythonlib]
779-
elif sys.platform[:6] == "atheos":
780-
from distutils import sysconfig
781-
782-
template = "python%d.%d"
783-
pythonlib = (template %
784-
(sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff))
785-
# Get SHLIBS from Makefile
786-
extra = []
787-
for lib in sysconfig.get_config_var('SHLIBS').split():
788-
if lib.startswith('-l'):
789-
extra.append(lib[2:])
790-
else:
791-
extra.append(lib)
792-
# don't extend ext.libraries, it may be shared with other
793-
# extensions, it is a reference to the original list
794-
return ext.libraries + [pythonlib, "m"] + extra
795779
elif sys.platform == 'darwin':
796780
# Don't use the default code below
797781
return ext.libraries

0 commit comments

Comments
 (0)