diff --git a/setup.py b/setup.py index 8be71b8d6e..e77fec687b 100644 --- a/setup.py +++ b/setup.py @@ -1176,7 +1176,7 @@ class buildembedded(Command): if not self.local_bins: # copy .exe's from ./build/lib.win-amd64/, not from ./ bindir = pjoin(scriptdir, "build", distutils_dir_name("scripts")) - sourcename = "hg.exe" if iswindows else "hg.rust" + sourcename = "hg.rust.exe" if iswindows else "hg.rust" else: sourcename = "hg.exe" if iswindows else "hg" targetname = "hg.exe" if iswindows else "hg"