Patchwork D12281: setup: remove Rust support for Python 2

login
register
mail settings
Submitter phabricator
Date March 2, 2022, 3:46 p.m.
Message ID <differential-rev-PHID-DREV-e43uofn2jo5fzt37lcup-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50619/
State New
Headers show

Comments

phabricator - March 2, 2022, 3:46 p.m.
durin42 created this revision.
durin42 added a reviewer: indygreg.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D12281

AFFECTED FILES
  setup.py

CHANGE DETAILS




To: durin42, indygreg, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -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: