-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Getting started with micropython development requires first building the appropriate binaries for your platform.
- DEB-based systems
- FreeBSD-based systems
- RPM-based systems
- Pacman-based systems
- Gentoo-based systems
- Mac systems
The following packages will need to be installed before you can compile and run MicroPython:
- build-essential
- libreadline-dev
- libffi-dev
- git
To install these packages, use the following command:
sudo apt-get install build-essential libreadline-dev libffi-dev git
Then, clone the repository to your local machine:
git clone https://github.com/micropython/micropython.git
Change directory to the Unix build directory:
cd ./micropython/unix
And then make the executable
make
At that point, you will have a functioning micropython executable, which may be launched with the command:
./micropython
(Release 9.2 tested)
Ensure that you have git, GCC, gmake, pythyon3, and bash packages installed:
[as root] pkg_add -r git gcc gmake python3 bash
Clone the git repository to your local machine:
git clone https://github.com/micropython/micropython.git
Change directory to the Unix build directory:
cd ./micropython/unix
Edit main.c, replacing "malloc.h" with "stdlib.h", then:
gmake
This will generate the 'py' executable, which may be executed by:
./micropython
The required packages can be installed with:
sudo yum install git gcc readline-devel
Clone the git repository to your local machine:
git clone https://github.com/micropython/micropython.git
Change directory to the Unix build directory:
cd ./micropython/unix
And then make the executable
make
At that point, you will have a functioning micropython executable, which may be launched with the command:
./micropython
The following packages will need to be installed before you can compile and run MicroPython:
- gcc or gcc-multilib
- readline
- git
To install these packages, use the following command:
pacman -S gcc readline git
Then, clone the repository to your local machine:
git clone https://github.com/micropython/micropython.git
Change directory to the Unix build directory:
cd micropython/unix
And then make the executable
make
At that point, you will have a functioning micropython executable, which may be launched with the command:
./micropython
Dependencies are listed on MicroPython on Mac OSX
The XCode and Command Line Developer Tools package will need to be installed before you can compile and run MicroPython:
xcode-select --install
Then, clone the repository to your local machine:
git clone https://github.com/micropython/micropython.git
Change directory to the Unix build directory:
cd micropython/unix
And then make the executable
make
At that point, you will have a functioning micropython executable, which may be launched with the command:
./micropython