changeset 48837:12cba4886e90

setup: remove Rust support for Python 2 Differential Revision: https://phab.mercurial-scm.org/D12281
author Augie Fackler <augie@google.com>
date Wed, 02 Mar 2022 10:29:54 -0500
parents e020dbbc41e5
children cd3e25adcf84
files setup.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Wed Mar 02 10:25:11 2022 -0500
+++ b/setup.py	Wed Mar 02 10:29:54 2022 -0500
@@ -1380,13 +1380,9 @@
 
         cargocmd = ['cargo', 'rustc', '--release']
 
-        feature_flags = []
+        feature_flags = ['python3']
 
         cargocmd.append('--no-default-features')
-        if sys.version_info[0] == 2:
-            feature_flags.append('python27')
-        elif sys.version_info[0] == 3:
-            feature_flags.append('python3')
 
         rust_features = env.get("HG_RUST_FEATURES")
         if rust_features: