Re: Help with building from source 4.0.6
Robin Dunn <[email protected]> Wed, 12 Jun 2019 09:24:47 -0700 (PDT)
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_2776_314971317.1560356687472
Content-Type: multipart/alternative;
boundary="----=_Part_2777_1375045413.1560356687473"
------=_Part_2777_1375045413.1560356687473
Content-Type: text/plain; charset="UTF-8"
On Wednesday, June 12, 2019 at 9:11:06 AM UTC-7, Tyler Carr wrote:
>
> Hi, I am trying to build wxpython from source and tried following the
> readme, but it has me a bit confused. I am attempting to build 4.0.6 on
> Windows 10 64-bit. The steps I followed were:
>
>
> 1. Cloning the github
> 2. Running: "git submodule update --init --recursive"
> 3. I then ran: "python build.py dox etg --nodoc sip build" but
> received an error about not having the package "requests" installed so I
> installed it
>
>
You should do `pip install -r requirements.txt` to get other build-time
dependencies.
>
> 1. I tried to run the build script again using the same command and
> received this error:
>
> File "build.py", line 891, in _doDox
> raise RuntimeError("ERROR: Unable to find bash.exe, needed for
> running regen.sh")
> RuntimeError: ERROR: Unable to find bash.exe, needed for running
> regen.sh
> Finished command: dox (0.526s)
>
> If someone could point me in the right direction that would be awesome or
> even layout the steps needed to correctly build from source.
>
Cygwin bash is required for running the script that generates the input for
the etg step. I've made changes in the master branch that make it less
picky about which bash.exe is installed (git bash, msys, wsl) but in the
4.0.x series it still expects cygwin. IIRC, bash is needed because the
regen.bat script doesn't provide enough flexibility to run doxygen the way
we need to run it.
If you don't need to make changes to the wxPython or wxWidgets source then
I recommend doing your build from a release or snapshot tarball instead of
from a git checkout. All the generated files are present in the tarballs,
so you can skip all the steps related to generating the sip and c++ files
and just do `python build.by build`, or you can instead just run setup.py
with normal distutils/setuptools commands.
--
Robin
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxPython-dev/4639374a-5b93-4c07-89f8-312b84c11fd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
------=_Part_2777_1375045413.1560356687473
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">On Wednesday, June 12, 2019 at 9:11:06 AM UTC-7, Tyler Car=
r wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0=
.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">Hi, I=
am trying to build wxpython from source and tried following the readme, bu=
t it has me a bit confused. I am attempting to build 4.0.6 on Windows 10 64=
-bit. The steps I followed were:<div><br></div><div><ol><li>Cloning the git=
hub</li><li>Running: "git submodule update --init --recursive"</l=
i><li>I then ran: "python build.py dox etg --nodoc sip build" but=
received an error about not having the package "requests" instal=
led so I installed it</li></ol></div></div></blockquote><div><br></div><div=
>You should do `pip install -r requirements.txt` to get other build-time de=
pendencies.</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=
=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: =
1ex;"><div dir=3D"ltr"><div><ol><li>I tried to run the build script again u=
sing the same command and received this error:=C2=A0<div style=3D"backgroun=
d-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;b=
order-width:1px"><code><font color=3D"#660066"><div><br></div><div>=C2=A0 F=
ile "build.py", line 891, in _doDox</div><div>=C2=A0 =C2=A0 raise=
RuntimeError("ERROR: Unable to find bash.exe, needed for running rege=
n.sh")</div><div>RuntimeError: ERROR: Unable to find bash.exe, needed =
for running regen.sh</div><div>Finished command: dox (0.526s)<br></div></fo=
nt></code></div></li></ol>If someone could point me in the right direction =
that would be awesome or even layout the steps needed to correctly build fr=
om source.</div></div></blockquote><div><br></div><div>Cygwin bash is requi=
red for running the script that generates the input for the etg step. I'=
;ve made changes in the master branch that make it less picky about which b=
ash.exe is installed (git bash, msys, wsl) but in the 4.0.x series it still=
expects cygwin.=C2=A0 IIRC, bash is needed because the regen.bat script do=
esn't provide enough flexibility to run doxygen the way we need to run =
it.</div><div><br></div><div>If you don't need to make changes to the w=
xPython or wxWidgets source then I recommend doing your build from a releas=
e or snapshot tarball instead of from a git checkout.=C2=A0 All the generat=
ed files are present in the tarballs, so you can skip all the steps related=
to generating the sip and c++ files and just do `python build.by build`, o=
r you can instead just run setup.py with normal distutils/setuptools comman=
ds.</div><div><br></div><div>=C2=A0--</div><div>Robin</div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;wxPython-dev" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">wxPyth=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/wxPython-dev/4639374a-5b93-4c07-89f8-312b84c11fd7%40googlegroups=
.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/ms=
gid/wxPython-dev/4639374a-5b93-4c07-89f8-312b84c11fd7%40googlegroups.com</a=
>.<br />
For more options, visit <a href=3D"https://groups.google.com/d/optout">http=
s://groups.google.com/d/optout</a>.<br />
------=_Part_2777_1375045413.1560356687473--
------=_Part_2776_314971317.1560356687472--