From 8c97512543a48c75a43a683fb962fb17d937c245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oleksis=20Fraga=20Men=C3=A9ndez?= Date: Wed, 22 Dec 2021 01:44:46 -0500 Subject: [PATCH] Add WX_SKIP_DOXYGEN_VERSION_CHECK if use WSL2 --- build.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.py b/build.py index 7269d9591..6903d20c0 100755 --- a/build.py +++ b/build.py @@ -973,6 +973,15 @@ def _doDox(arg): d = posixjoin(wxDir(), 'docs/doxygen') d = d.replace('\\', '/') cmd = '"{}" -l -c "cd {} && ./regen.sh {}"'.format(bash, d, arg) + # If use Bash.exe and Doxygen.exe in WSL2 + # os.environ["PATH"] = os.path.dirname(os.environ['DOXYGEN']) + ";" + os.environ["PATH"] + # cmd = '"{}" -l -c "cd {} && WX_SKIP_DOXYGEN_VERSION_CHECK=1 DOXYGEN="{}" ./regen.sh {}"'.format(bash, d, os.environ['DOXYGEN'], arg) + + # Use WSL2 + # Need install in the default distro doxygen and graphviz + if which('wsl'): + d = dos2bashPath(d) + cmd = '"{}" -l -c "cd {} && WX_SKIP_DOXYGEN_VERSION_CHECK=1 ./regen.sh {}"'.format(bash, d, arg) else: os.environ['DOXYGEN'] = doxCmd os.environ['WX_SKIP_DOXYGEN_VERSION_CHECK'] = '1'