setup: remove Python 2 support code for determining dylib suffix
Differential Revision: https://phab.mercurial-scm.org/D12274
--- 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: