# HG changeset patch # User Augie Fackler # Date 2022-03-02 15:29:54 # Node ID 12cba4886e90a16f1ed29eea753a490e2ec61bf6 # Parent e020dbbc41e541a402aef714437f3f4c461f5a5c setup: remove Rust support for Python 2 Differential Revision: https://phab.mercurial-scm.org/D12281 diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1380,13 +1380,9 @@ class RustExtension(Extension): 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: