Please note: This repository is deprecated and is no longer actively maintained.
This is a single click installer for Mbed CLI on OS X. If you want the installer please see the Releases page for the latest download link. Included in the installer is the latest stable version of all tools required to develop in the Mbed Ecosystem with Mbed CLI.
- Python 2.7.x
- GNU Arm Embedded Toolchain (GCC)
- Mbed CLI
- mbedls
- mbed-greentea
- mbed-host-tests
- any other relevant Mbed Python utilities
Download the .dmg file, open it. Copy the app to your applications folder. Run application from your applications folder.
When you run the app a Terminal is opened with modified local session variables that link to the versions of Python, the GCC toolchain and Mbed tools included in the installer.
Because we want something that "just works" for users in a consistent, reproducable way.
See the instructions here for how to install all the tools individually on your system.
Go build awesome.
- Update all dependencies in repo (GCC, Python Eggs, ...etc)
- For compiler updates, unzip the folder into the GCC folder, then modify the setup.py and run-mbed-cli.sh files config section to trace the new path
- for adding new tools like mbedls and mbed-cli that should have user available calls from the command like
$mbed
you should add them to thebin
folder. Make sure to modify the shebang to be similar to existing aliases in the bin folder.
- Run the command
sudo sh ./CreateInstaller.sh
- The app is now in
dist/MBED_CLI.app
Right, here are some suggestions
chmod 777 run-mbed-cli.sh
- do this because Terminal.app is finicky and this helps sometimes- Make sure you are building the app with non-system python. Install Python from brew or something. The following command should return false
python -c "import py2app.build_app; print py2app.build_app.is_system()"
- Cannot find packages, getting an error like 'UserWarning: No package named mbed-cli' when trying to build. Solution : the site packages found by Py2app does not contain the modules. Try copying things from the Brew site-packages to your system-python site-packages.
- update
CreateInstaller.sh
to install python packages from pip directly to install directory instead of installing to the computer
- The shell script
CreateInstaller.sh
contains an incorrect Python package installation directive.elftools
should be replaced withpyelftools
.