diff options
| author | Benjamin Peterson <benjamin@python.org> | 2017-10-25 23:55:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-25 23:55:14 -0700 |
| commit | 65cf5a85b0b59d3bab1f4b4e153557c6484ae825 (patch) | |
| tree | cdb844609cd7ec56f70f459e4e779c534527b35f | |
| parent | 6b18d32f779cf78bf0b0384277d52d8bf803d621 (diff) | |
| download | python-setuptools-git-65cf5a85b0b59d3bab1f4b4e153557c6484ae825.tar.gz | |
fixes bpo-31866: remove code pertaining to AtheOS support (#4115)
We stop support this OS in 2007 with commit
19fab761b71a1687aee3415db3a937b5ce31975d. Let's finish.
| -rw-r--r-- | command/build_ext.py | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/command/build_ext.py b/command/build_ext.py index 74445655..8fad9cdc 100644 --- a/command/build_ext.py +++ b/command/build_ext.py @@ -215,9 +215,9 @@ class build_ext(Command): new_lib = os.path.join(new_lib, suffix) self.library_dirs.append(new_lib) - # for extensions under Cygwin and AtheOS Python's library directory must be + # For extensions under Cygwin, Python's library directory must be # appended to library_dirs - if sys.platform[:6] == 'cygwin' or sys.platform[:6] == 'atheos': + if sys.platform[:6] == 'cygwin': if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")): # building third party extensions self.library_dirs.append(os.path.join(sys.prefix, "lib", @@ -715,22 +715,6 @@ class build_ext(Command): return ext.libraries + [pythonlib] else: return ext.libraries - elif sys.platform[:6] == "atheos": - from distutils import sysconfig - - template = "python%d.%d" - pythonlib = (template % - (sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff)) - # Get SHLIBS from Makefile - extra = [] - for lib in sysconfig.get_config_var('SHLIBS').split(): - if lib.startswith('-l'): - extra.append(lib[2:]) - else: - extra.append(lib) - # don't extend ext.libraries, it may be shared with other - # extensions, it is a reference to the original list - return ext.libraries + [pythonlib, "m"] + extra elif sys.platform == 'darwin': # Don't use the default code below return ext.libraries |
