Re: Universal build launches as Intel on M1
[email protected] Mon, 28 Mar 2022 23:05:22 +0200
| Newsgroups | gmane.comp.python.apple |
|---|---|
| Message-ID | <[email protected]> |
--===============0509073866497274920== Content-Type: multipart/alternative; boundary="Apple-Mail=_C240DE58-699A-4E2C-B52D-1E6EE2A67128" --Apple-Mail=_C240DE58-699A-4E2C-B52D-1E6EE2A67128 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I can=E2=80=99t check right now (I don=E2=80=99t have a universal Python = installed, just to separate intel and M1 pythons), but if you use Finder = =E2=80=9CGet Info=E2=80=9D on the application bundle: does it show the = =E2=80=9COpen using Rosetta=E2=80=9D checkbox? If it does: ensure it is unchecked. -- Jack Jansen, <[email protected]>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma = Goldman > On 28 Mar 2022, at 10:08, Aivar Annamaa <[email protected]> = wrote: >=20 > Hi! >=20 > I have an app bundle, with embedded python.org <http://python.org/>'s = universal build of Python 3.10.2 framework and a Tkinter-based GUI = (https://github.com/thonny/thonny/releases/tag/v4.0.0b1 = <https://github.com/thonny/thonny/releases/tag/v4.0.0b1>) >=20 > I've used IDLE's approach in the Info.plist, and the launcher script. = Functionally all is working fine, but a M1 user reported, that when = opened from Finder, the app is launched in "Intel" mode. When the = launcher is invoked in Terminal = (/Applications/Thonny.app/Contents/MacOS/thonny), the app gets run in = AMD64 mode. I don't have a M1 myself, so I haven't reproduced it myself. >=20 > The same user now said that latest IDLE (3.10.4) runs in AMD64 mode = even when launched from Finder. >=20 > Any ideas what to check or try in order to make my app run in native = mode? >=20 > My launcher script template is here: = https://github.com/thonny/thonny/blob/master/packaging/mac/Thonny.app.init= ial_template/Contents/MacOS/thonny = <https://github.com/thonny/thonny/blob/master/packaging/mac/Thonny.app.ini= tial_template/Contents/MacOS/thonny> (shebang becomes gets set to = .../Thonny.app/Contents/Frameworks/Python.framework/Versions/3.10/Resource= s/Python.app/Contents/MacOS/Python by the postinstall script) >=20 > Info.plist template is here: = https://github.com/thonny/thonny/blob/master/packaging/mac/Thonny.app.init= ial_template/Contents/Info.plist = <https://github.com/thonny/thonny/blob/master/packaging/mac/Thonny.app.ini= tial_template/Contents/Info.plist> >=20 > Best regards, > Aivar > _______________________________________________ > Pythonmac-SIG maillist - [email protected] > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG --Apple-Mail=_C240DE58-699A-4E2C-B52D-1E6EE2A67128 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"">I = can=E2=80=99t check right now (I don=E2=80=99t have a universal Python = installed, just to separate intel and M1 pythons), but if you use Finder = =E2=80=9CGet Info=E2=80=9D on the application bundle: does it show the = =E2=80=9COpen using Rosetta=E2=80=9D checkbox?<div class=3D""><br = class=3D""></div><div class=3D"">If it does: ensure it is unchecked.<br = class=3D""><div class=3D""> <span class=3D"Apple-style-span" style=3D"border-collapse: separate; = color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; line-height: normal; orphans: 2; text-align: = auto; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0; "><div class=3D""><p = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; " class=3D""><font face=3D"Helvetica" size=3D"3" = style=3D"font: normal normal normal 12px/normal Helvetica; " = class=3D"">--</font></p><p style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; " class=3D""><font = face=3D"Helvetica" size=3D"3" style=3D"font: normal normal normal = 12px/normal Helvetica; " class=3D"">Jack Jansen, <<a = href=3D"mailto:[email protected]" class=3D"">[email protected]</a>>, = <a href=3D"http://www.cwi.nl/~jack" = class=3D"">http://www.cwi.nl/~jack</a></font></p><p style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " = class=3D""><font face=3D"Helvetica" size=3D"3" style=3D"font: normal = normal normal 12px/normal Helvetica; " class=3D"">If I can't dance I = don't want to be part of your revolution -- Emma Goldman</font></p><br = class=3D"Apple-interchange-newline"></div></span><br = class=3D"Apple-interchange-newline"> </div> <div><br class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D"">On 28 Mar 2022, at 10:08, Aivar Annamaa <<a = href=3D"mailto:[email protected]" = class=3D"">[email protected]</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" = class=3D"">Hi!<div class=3D""><br class=3D""></div><div class=3D"">I = have an app bundle, with embedded <a href=3D"http://python.org/" = class=3D"">python.org</a>'s universal build of Python 3.10.2 framework = and a Tkinter-based GUI (<a = href=3D"https://github.com/thonny/thonny/releases/tag/v4.0.0b1" = class=3D"">https://github.com/thonny/thonny/releases/tag/v4.0.0b1</a>)</di= v><div class=3D""><br class=3D""></div><div class=3D"">I've used IDLE's = approach in the Info.plist, and the launcher script. Functionally all is = working fine, but a M1 user reported, that when opened from Finder, the = app is launched in "Intel" mode. When the launcher is invoked in = Terminal (/Applications/Thonny.app/Contents/MacOS/thonny), the app gets = run in AMD64 mode. I don't have a M1 myself, so I haven't reproduced it = myself.</div><div class=3D""><br class=3D""></div><div class=3D"">The = same user now said that latest IDLE (3.10.4) runs in AMD64 mode even = when launched from Finder.<br class=3D""></div><div class=3D""><br = class=3D""></div><div class=3D"">Any ideas what to check or try in order = to make my app run in native mode?</div><div class=3D""><br = class=3D""></div><div class=3D"">My launcher script template is = here: <a = href=3D"https://github.com/thonny/thonny/blob/master/packaging/mac/Thonny.= app.initial_template/Contents/MacOS/thonny" = class=3D"">https://github.com/thonny/thonny/blob/master/packaging/mac/Thon= ny.app.initial_template/Contents/MacOS/thonny</a> (shebang becomes gets = set = to .../Thonny.app/Contents/Frameworks/Python.framework/Versions/3.10/= Resources/Python.app/Contents/MacOS/Python by the postinstall = script)</div><div class=3D""><br class=3D""></div><div = class=3D"">Info.plist template is here: <a = href=3D"https://github.com/thonny/thonny/blob/master/packaging/mac/Thonny.= app.initial_template/Contents/Info.plist" = class=3D"">https://github.com/thonny/thonny/blob/master/packaging/mac/Thon= ny.app.initial_template/Contents/Info.plist</a><br class=3D""></div><div = class=3D""><br class=3D""></div><div class=3D"">Best regards,<br = class=3D"">Aivar</div></div> _______________________________________________<br = class=3D"">Pythonmac-SIG maillist - <a = href=3D"mailto:[email protected]" = class=3D"">[email protected]</a><br class=3D""><a = href=3D"https://mail.python.org/mailman/listinfo/pythonmac-sig" = class=3D"">https://mail.python.org/mailman/listinfo/pythonmac-sig</a><br = class=3D"">unsubscribe: = https://mail.python.org/mailman/options/Pythonmac-SIG<br = class=3D""></div></blockquote></div><br class=3D""></div></body></html>= --Apple-Mail=_C240DE58-699A-4E2C-B52D-1E6EE2A67128-- --===============0509073866497274920== 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 --===============0509073866497274920==--