Re: "pythonw" in a Unix build

Ronald Oussoren via Pythonmac-SIG <[email protected]> Tue, 19 Jan 2021 09:30:48 +0100
Newsgroups gmane.comp.python.apple
Message-ID <[email protected]>
--===============9046916385034703829==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_71373020-D77B-4880-93C6-CAB00E6614B1"


--Apple-Mail=_71373020-D77B-4880-93C6-CAB00E6614B1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On 18 Jan 2021, at 18:38, Christopher Barker <[email protected]> =
wrote:
>=20
> On Mon, Jan 18, 2021 at 1:34 AM Ronald Oussoren =
<[email protected] <mailto:[email protected]>> wrote:
> As mentioned on python-dev adding the =E2=80=9Cpythonw=E2=80=9D =
functionality to the unix build is not very hard. I expect that =
integrating with the build system (Makefile/configure script) will be =
the hardest part due to introducing different behaviour for the macOS =
platform.=20
>=20
> Thanks Ronald, that confirms my suspicions that this is really an =
autoconf issue. Which makes it an utter mystery to me :-(

Most of the relevant build machinery is in the Makefile. And looking at =
this there=E2=80=99s already precedent for checking for macOS there, =
=E2=80=9Cpython-config=E2=80=9D is a shell script on all platforms =
except macOS, and the makefile fragment for building it checks if =
we=E2=80=99re on macOS without using autoconf.

>> And we already have a work around in the core python code, it's just =
that the build system needs to be set up to build it outside of a =
Framework.
> The framework build does not have a workaround for these problems, it =
has a proper solution ;-).=20
>=20
> Glad to hear that -- in earlier conversations, I got the impression =
that you thought the executable wrapper was kind of a hack :-).

In the end it is a workaround for a platform feature that=E2=80=99s =
causing problems, but Python.app in the framework build is a proper app =
bundle.  Using a shell script for the same functionality is a hack (he =
says without having looked at that script) ;-)

>=20
> Anyway -- if any of you have autoconf expertise and the inclination, =
I'd love to see this get done, and would be glad to help as best I can.
>=20
> -CHB
> =20
> --=20
> Christopher Barker, PhD (Chris)
>=20
> Python Language Consulting
>   - Teaching
>   - Scientific Software Development
>   - Desktop GUI and Web Development
>   - wxPython, numpy, scipy, Cython


Ronald
=E2=80=94

Twitter / micro.blog: @ronaldoussoren
Blog: https://blog.ronaldoussoren.net/


--Apple-Mail=_71373020-D77B-4880-93C6-CAB00E6614B1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 18 Jan 2021, at 18:38, Christopher Barker &lt;<a =
href=3D"mailto:[email protected]" class=3D"">[email protected]</a>&gt;=
 wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div =
dir=3D"ltr" class=3D""><div dir=3D"ltr" class=3D"">On Mon, Jan 18, 2021 =
at 1:34 AM Ronald Oussoren &lt;<a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:<br class=3D""></div><div =
class=3D"gmail_quote"><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex"><div style=3D"overflow-wrap: =
break-word;" class=3D""><div class=3D"">As mentioned on python-dev =
adding the =E2=80=9Cpythonw=E2=80=9D functionality to the unix build is =
not very hard. I expect that integrating with the build system =
(Makefile/configure script) will be the hardest part due to introducing =
different behaviour for the macOS =
platform.&nbsp;</div></div></blockquote><div class=3D""><br =
class=3D""></div><div class=3D"">Thanks Ronald, that confirms my =
suspicions that this is really an autoconf issue. Which makes it an =
utter mystery to me :-(</div></div></div></div></blockquote><div><br =
class=3D""></div>Most of the relevant build machinery is in the =
Makefile. And looking at this there=E2=80=99s already precedent for =
checking for macOS there, =E2=80=9Cpython-config=E2=80=9D is a shell =
script on all platforms except macOS, and the makefile fragment for =
building it checks if we=E2=80=99re on macOS without using =
autoconf.</div><div><br class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D""><div dir=3D"ltr" class=3D""><div =
class=3D"gmail_quote"><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid =
rgb(204,204,204);padding-left:1ex"><div style=3D"overflow-wrap: =
break-word;" class=3D""><div class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D""><div dir=3D"ltr" =
style=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-varia=
nt-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;t=
ext-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;tex=
t-decoration:none" class=3D""><div class=3D"gmail_quote"><div =
class=3D"">And we already have a work around in the core python code, =
it's just that the build system needs to be set up to build it outside =
of a Framework.</div></div></div></div></blockquote>The framework build =
does not have a workaround for these problems, it has a proper solution =
;-).&nbsp;</div></div></blockquote><div class=3D""><br =
class=3D""></div><div class=3D"">Glad to hear that -- in earlier =
conversations, I got the impression that you thought the executable =
wrapper was kind of a hack =
:-).</div></div></div></div></blockquote><div><br class=3D""></div>In =
the end it is a workaround for a platform feature that=E2=80=99s causing =
problems, but Python.app in the framework build is a proper app bundle. =
&nbsp;Using a shell script for the same functionality is a hack (he says =
without having looked at that script) ;-)</div><div><br =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><div =
dir=3D"ltr" class=3D""><div class=3D"gmail_quote"><div class=3D""><br =
class=3D""></div><div class=3D"">Anyway -- if any of you have autoconf =
expertise&nbsp;and the inclination, I'd love to see this get done, and =
would be glad to help as best I can.</div><div class=3D""><br =
class=3D""></div><div class=3D"">-CHB</div><div =
class=3D"">&nbsp;</div></div>-- <br class=3D""><div dir=3D"ltr" =
class=3D"gmail_signature"><div dir=3D"ltr" class=3D"">Christopher =
Barker, PhD (Chris)<br class=3D""><br class=3D""> Python Language =
Consulting<br class=3D"">&nbsp; - Teaching<br class=3D"">&nbsp; - =
Scientific Software Development<br class=3D"">&nbsp; - Desktop GUI and =
Web Development<br class=3D"">&nbsp; - wxPython, numpy, scipy, Cython<br =
class=3D""></div></div></div>
</div></blockquote></div><div class=3D""><br class=3D""></div>Ronald<br =
class=3D""><div class=3D"">
<div dir=3D"auto" style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; line-break: after-white-space;" class=3D""><div =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;">=E2=80=94</div><div style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br class=3D""></div><div style=3D"caret-color: =
rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;">Twitter / =
micro.blog: @ronaldoussoren</div><div style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;">Blog: <a =
href=3D"https://blog.ronaldoussoren.net/" =
class=3D"">https://blog.ronaldoussoren.net/</a></div></div>
</div>
<br class=3D""></body></html>=

--Apple-Mail=_71373020-D77B-4880-93C6-CAB00E6614B1--

--===============9046916385034703829==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Pythonmac-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

--===============9046916385034703829==--