Unix (or MacOS or Windows) Port Installation

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
patrickw
Posts: 12
Joined: Sat Feb 01, 2020 7:51 pm
Contact:

Unix (or MacOS or Windows) Port Installation

Post by patrickw » Fri May 15, 2020 7:51 pm

I searched the docs and this forum and didn't find an answer.

Is doing a build the only way to install the Unix (or MacOS or Windows) Ports?

I can download a firmware for my TinyPico, but don't see that for the other non-hardware ports.
I'm primarily interested in MacOS, but thought I'd ask the question more generally.

Thanks!
-p

SpotlightKid
Posts: 463
Joined: Wed Apr 08, 2015 5:19 am

Re: Unix (or MacOS or Windows) Port Installation

Post by SpotlightKid » Fri May 15, 2020 9:19 pm

Some Linux distributions have packages for MicroPython, which install the Unix port.

For MacOS you could look at homebrew, maybe they have a package for it?

Providing pre-compiled binaries on the MicroPython website for different Linux distributions and MacOS versions and keeping them up-to-date is probably a lot of work, unless you set up a build server to automate it. And since MicroPython is rather easy to compile and doesn't have that many requirements, it's a matter of weighing the effort against the benefits.
Last edited by SpotlightKid on Fri May 15, 2020 9:37 pm, edited 1 time in total.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Unix (or MacOS or Windows) Port Installation

Post by dhylands » Fri May 15, 2020 9:32 pm

It looks like you can install micropython on MacOS using:

Code: Select all

brew install micropython
That gave me this version:

Code: Select all

$ micropython
MicroPython v1.12 on 2020-04-18; darwin version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> 
If you don't have homebrew installed, you can get it here

patrickw
Posts: 12
Joined: Sat Feb 01, 2020 7:51 pm
Contact:

Re: Unix (or MacOS or Windows) Port Installation

Post by patrickw » Fri May 15, 2020 9:51 pm

Thanks Dave,

I didn't think to check brew. /*facepalm*/

I'll find a place to add this information to the docs.
If you have a preference for where feel free to tell me though.

Thanks again!

patrickw
Posts: 12
Joined: Sat Feb 01, 2020 7:51 pm
Contact:

Re: Unix (or MacOS or Windows) Port Installation

Post by patrickw » Fri May 15, 2020 10:00 pm

Since I'm going document this, if anyone has Windows instructions post those as well.

Cheers!
-p

stijn
Posts: 735
Joined: Thu Apr 24, 2014 9:13 am

Re: Unix (or MacOS or Windows) Port Installation

Post by stijn » Sat May 16, 2020 6:37 am

There are no Windows packages I'm aware of (not in chocolatey or scoop). However it might actually be pretty easy to have e.g. the latest build from master available for download from the build system i.e. Appveyor, I'll look into it.


Post Reply