Re: Need M1 Mac to Test
[email protected] Wed, 12 Jan 2022 21:53:15 +0100
| Newsgroups | gmane.comp.python.apple |
|---|---|
| Message-ID | <[email protected]> |
--===============0667925388333008803== Content-Type: multipart/alternative; boundary="Apple-Mail=_A39E3128-D51E-4D30-901A-C4EEADAC8E09" --Apple-Mail=_A39E3128-D51E-4D30-901A-C4EEADAC8E09 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Python runs just fine natively on M1 Macs. The python.org = <http://python.org/> installer will install a Universal2 binary (a = single binary containing both the i386 and arm architectures). If you install through brew you get the architecture your brew has been = configured for. But there _is_ a problem with native arm Python, and that is that not = all extension packages (think: from pypi) have M1 versions available = yet. This is especially true for packages that depend on external = libraries (which may not have been ported to M1 yet). The way I handle this on my (M1) development machine is that I have both = versions of brew installed, which is easy because arm-brew installs into = /opt/homebrew by default and intel-brew installs into /usr/local. If I open a Terminal window it has /opt/homebrew/bin before = /usr/local/bin in my $PATH, and the background is white. If I open an iTerm window it runs in Rosetta intel emulation mode, it = has /usr/local/bin before /opt/homebrew/bin, and the background is a = creamy old-fashioned looking off-white color. As long as I do builds in the window of the correct color, and the = correct tools I need for building have been installed in the correct = directory everything works fine.The white windows will use python3 for = arm, the cream windows will use python3 for intel. -- 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 12 Jan 2022, at 17:29, Brian Herman <[email protected]> wrote: >=20 > Do you guys need an M1 mac to test out the latest python? > I have an extra macbook air m1 I would be willing to give people = access to it so they can test the latest python and compile things or I = could do it manually. > My brother said you guys didn't have one yet. > _______________________________________________ > Pythonmac-SIG maillist - [email protected] > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG --Apple-Mail=_A39E3128-D51E-4D30-901A-C4EEADAC8E09 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" = class=3D"">Python runs just fine natively on M1 Macs. The <a = href=3D"http://python.org" class=3D"">python.org</a> installer will = install a Universal2 binary (a single binary containing both the i386 = and arm architectures).<div class=3D""><br class=3D""></div><div = class=3D"">If you install through brew you get the architecture your = brew has been configured for.</div><div class=3D""><br = class=3D""></div><div class=3D"">But there _is_ a problem with native = arm Python, and that is that not all extension packages (think: from = pypi) have M1 versions available yet. This is especially true for = packages that depend on external libraries (which may not have been = ported to M1 yet).</div><div class=3D""><br class=3D""></div><div = class=3D"">The way I handle this on my (M1) development machine is that = I have both versions of brew installed, which is easy because arm-brew = installs into /opt/homebrew by default and intel-brew installs into = /usr/local.</div><div class=3D""><br class=3D""></div><div class=3D"">If = I open a Terminal window it has /opt/homebrew/bin before /usr/local/bin = in my $PATH, and the background is white.</div><div class=3D""><br = class=3D""></div><div class=3D"">If I open an iTerm window it runs in = Rosetta intel emulation mode, it has /usr/local/bin before = /opt/homebrew/bin, and the background is a creamy old-fashioned looking = off-white color.</div><div class=3D""><br class=3D""></div><div = class=3D"">As long as I do builds in the window of the correct color, = and the correct tools I need for building have been installed in the = correct directory everything works fine.The white windows will use = python3 for arm, the cream windows will use python3 for intel.<br = class=3D""><div 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 12 Jan 2022, at 17:29, Brian Herman <<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"">Do you guys need an M1 mac to test out the latest python?<div = class=3D"">I have an extra macbook air m1 I would be willing to give = people access to it so they can test the latest python and compile = things or I could do it manually.</div><div class=3D"">My brother said = you guys didn't have one yet.</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></div></body></html>= --Apple-Mail=_A39E3128-D51E-4D30-901A-C4EEADAC8E09-- --===============0667925388333008803== 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 --===============0667925388333008803==--