diff contrib/packaging/hgpackaging/inno.py @ 46364:5b747aa1b2be stable

packaging: include `windows_curses` when building py2exe The `_curses.pyd` module was previously being included by py2exe's module search, but it left out `_curses_panel.pyd`. Differential Revision: https://phab.mercurial-scm.org/D9857
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 24 Jan 2021 19:14:50 -0500
parents 89a2afe31e82
children df1767fa822d
line wrap: on
line diff
--- a/contrib/packaging/hgpackaging/inno.py	Sun Jan 24 19:08:47 2021 -0500
+++ b/contrib/packaging/hgpackaging/inno.py	Sun Jan 24 19:14:50 2021 -0500
@@ -33,6 +33,11 @@
     'win32ctypes',
 }
 
+EXTRA_INCLUDES = {
+    '_curses',
+    '_curses_panel',
+}
+
 EXTRA_INSTALL_RULES = [
     ('contrib/win32/mercurial.ini', 'defaultrc/mercurial.rc'),
 ]
@@ -78,6 +83,7 @@
         'inno',
         requirements_txt,
         extra_packages=EXTRA_PACKAGES,
+        extra_includes=EXTRA_INCLUDES,
     )
 
     # Purge the staging directory for every build so packaging is