changeset 48830:3491c450dcae

setup: remove Python 2 support code for determining dylib suffix Differential Revision: https://phab.mercurial-scm.org/D12274
author Augie Fackler <augie@google.com>
date Wed, 02 Mar 2022 10:12:48 -0500
parents fef4198c855c
children 40e35034eac8
files setup.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Wed Mar 02 10:12:17 2022 -0500
+++ b/setup.py	Wed Mar 02 10:12:48 2022 -0500
@@ -51,11 +51,7 @@
     print(error, file=sys.stderr)
     sys.exit(1)
 
-if sys.version_info[0] >= 3:
-    DYLIB_SUFFIX = sysconfig.get_config_vars()['EXT_SUFFIX']
-else:
-    # deprecated in Python 3
-    DYLIB_SUFFIX = sysconfig.get_config_vars()['SO']
+DYLIB_SUFFIX = sysconfig.get_config_vars()['EXT_SUFFIX']
 
 # Solaris Python packaging brain damage
 try: