setup: remove Python 2 support code for determining dylib suffix
authorAugie Fackler <augie@google.com>
Wed, 02 Mar 2022 10:12:48 -0500
changeset 48921 3491c450dcae
parent 48920 fef4198c855c
child 48922 40e35034eac8
setup: remove Python 2 support code for determining dylib suffix Differential Revision: https://phab.mercurial-scm.org/D12274
setup.py
--- 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: