From patchwork Sun Mar 10 01:51:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D6093: setup: properly install build_hgextindex for py2exe builds From: phabricator X-Patchwork-Id: 39189 Message-Id: <4240d1bf125a55c39c137e3e0595cbaa@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Sun, 10 Mar 2019 01:51:56 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGac32e04e887f: setup: properly install build_hgextindex for py2exe builds (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6093?vs=14403&id=14448 REVISION DETAIL https://phab.mercurial-scm.org/D6093 AFFECTED FILES setup.py CHANGE DETAILS To: indygreg, #hg-reviewers Cc: mercurial-devel diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -1262,8 +1262,10 @@ {'script':'hg', 'copyright':'Copyright (C) 2005-2019 Matt Mackall and others', 'product_version':version}] - # sub command of 'build' because 'py2exe' does not handle sub_commands - build.sub_commands.insert(0, ('build_hgextindex', None)) + # Sub command of 'build' because 'py2exe' does not handle sub_commands. + # Need to override hgbuild because it has a private copy of + # build.sub_commands. + hgbuild.sub_commands.insert(0, ('build_hgextindex', None)) # put dlls in sub directory so that they won't pollute PATH extra['zipfile'] = 'lib/library.zip'