Actual py3 win build instruction
TortoiseHg 6.2rc0 based on (happened) py3.9 (drop support win7?) but looks as "classic windows". Theme styling does not work.
There was a similar problem in Pyinstaller, but we have py2exe and I did not find anything for it. Therefore, I tried to build thg myself following the instructions
difficulties
1 Instructions are missing steps
hg clone --config=format.revlog-compression=zlib https://foss.heptapod.net/mercurial/tortoisehg/thg-build-deps/hg-zipdoc zipdoc
hg clone --config=format.revlog-compression=zlib https://foss.heptapod.net/mercurial/tortoisehg/thg-build-deps/hgcr-gui hgcr-gui
hg clone --config=format.revlog-compression=zlib https://foss.heptapod.net/mercurial/tortoisehg/thg-build-deps/projrc projrc
hg clone --config=format.revlog-compression=zlib https://foss.heptapod.net/mercurial/tortoisehg/thg-build-deps/onsub onsub
hg clone --config=format.revlog-compression=zlib https://foss.heptapod.net/mercurial/tortoisehg/thg-build-deps/simplelock simplelock
hg clone --config=format.revlog-compression=zlib https://foss.heptapod.net/mercurial/mercurial-extension_utils meu
2 I have a problem with Russian localization
hg/i18n/ru.po contains
msgid ""
"files...\n"
" indicates one or more filename or relative path filenames; see\n"
" `File Name Patterns`_ for information on pattern matching"
msgstr ""
"файлы...\n"
" означает одно или несколько имен файлов либо относительных путей к ним;\n"
" об использовании шаблонов см. `Шаблоны имен файлов`_"
and it crashes all the time with error. I had to remove '--halt warning' from command and as result
build/hg/doc> C:\Python\Python\python.exe runrst html --link-stylesheet --stylesheet-path style.css hg.1.txt hg.1.html
hg.1.txt:34: (ERROR/3) Unknown target name: "шаблоны имен файлов".
hg.1.txt:90: (ERROR/3) Unknown target name: "ссылки".
3 python setup.py --thg-doc not work
setup.py: error: unrecognized arguments: --thg-doc
4.1 "Unable to find Microsoft Windows SDK 7.1, please install"
need SDK 10
4.2 SDK env
I had to do
run('"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Auxiliary\\Build\\vcvarsall.bat" x86_amd64 & nmake.exe /nologo /f Makefile.nmake clean', builddir, env=env)
run('"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Auxiliary\\Build\\vcvarsall.bat" x86_amd64 & nmake.exe /nologo /f Makefile.nmake', builddir, env=env)
I can compile nmake.exe /nologo /f Makefile.nmake
from console but run
in setup.py cannot found excpt.h
5 python 2 code
File "C:\Python\Python\lib\site-packages\py2exe\vendor\modulefinder.py", line 387, in load_module
co = compile(fp.read(), m.__dest_file__, 'exec', optimize=self._optimize)
File "hgext\projrc.pyc", line 315
except OSError, e:
^^^^^^^^^^
projrc/projrc.py
has many such errors
7 missing step
$env:PATH += "C:\\Program Files (x86)\\WiX Toolset v3.11\\bin"
Now I'm trying to solve the problem that msm is version 143, and the script expects 142