Patchwork D8142: setup: exclude the __index__ module from itself when generating

login
register
mail settings
Submitter phabricator
Date Feb. 25, 2020, 3:10 p.m.
Message ID <5e2fbfacca35d26c774faeff4851be41@localhost.localdomain>
Download mbox | patch
Permalink /patch/45315/
State Not Applicable
Headers show

Comments

phabricator - Feb. 25, 2020, 3:10 p.m.
Closed by commit rHGbb58931d0c4f: setup: exclude the __index__ module from itself when generating (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8142?vs=20276&id=20299

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8142/new/

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

AFFECTED FILES
  setup.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, marmoute, pulkit
Cc: marmoute, mercurial-devel

Patch

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -665,7 +665,9 @@ 
         # here no extension enabled, disabled() lists up everything
         code = (
             'import pprint; from mercurial import extensions; '
-            'pprint.pprint(extensions.disabled())'
+            'ext = extensions.disabled();'
+            'ext.pop("__index__", None);'
+            'pprint.pprint(ext)'
         )
         returncode, out, err = runcmd(
             [sys.executable, '-c', code], localhgenv()