changeset 53175:1ff77fddec1e

setup: also install the cext type-stub It does not hurt to have them around and it simplify the pytype setup.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 15 Apr 2025 12:02:07 +0200
parents 089e55355931
children 99a7cfe324e6
files contrib/setup-pytype.sh setup.py
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/setup-pytype.sh	Tue Apr 15 12:00:35 2025 +0200
+++ b/contrib/setup-pytype.sh	Tue Apr 15 12:02:07 2025 +0200
@@ -26,6 +26,3 @@
 touch ${HG_STUBS}/mercurial/__init__.pyi
 touch ${HG_STUBS}/mercurial/cext/__init__.pyi
 touch ${HG_STUBS}/mercurial/thirdparty/__init__.pyi
-
-ln -sf $(hg root)/mercurial/cext/*.{pyi,typed} \
-       ${HG_STUBS}/mercurial/cext
--- a/setup.py	Tue Apr 15 12:00:35 2025 +0200
+++ b/setup.py	Tue Apr 15 12:02:07 2025 +0200
@@ -1349,6 +1349,10 @@
         '*.pyi',
         'py.typed',
     ],
+    'mercurial.cext': [
+        '*.pyi',
+        'py.typed',
+    ],
 }