mpy-cross, how to build binary for windows

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
apollo2mond
Posts: 8
Joined: Wed May 29, 2019 6:17 pm

mpy-cross, how to build binary for windows

Post by apollo2mond » Wed May 29, 2019 7:19 pm

Hi all,
I need help regarding how to build a mpy-cross binary for windows.

Many thanks!

WRR
Posts: 7
Joined: Wed Jan 09, 2019 8:33 pm

Re: mpy-cross, how to build binary for windows

Post by WRR » Sat Jun 01, 2019 6:55 pm

Have you tried installing it with pip? It looks like it has Windows builds available on PyPi:

https://pypi.org/project/mpy-cross/

You can probably install it like a normal Python package:

Code: Select all

pip install mpy-cross
or

Code: Select all

pip3 install mpy-cross
Remember, the "S" in "IoT" stands for "Security".

apollo2mond
Posts: 8
Joined: Wed May 29, 2019 6:17 pm

Re: mpy-cross, how to build binary for windows

Post by apollo2mond » Sun Jun 02, 2019 5:26 pm

Thanks, I was not aware that it is so simple!

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

Re: mpy-cross, how to build binary for windows

Post by stijn » Mon Jun 03, 2019 7:36 am

For reference, since the title asks about building, there are alternatives: there's a Makefile which can be built using gcc for windows (i.e. from Mingw-w64, can be obtained as part of Cygwin or MSYS2) and a project file for Msvc is on it's way.

Post Reply