Skip to main content

micropython mpy-cross distribution

Project description

mpy-cross is the micropython cross compiler utility, used to pre-compile python files into bytecode suitable for running on your target.

This project compiles mpy-cross for windows, linux and macos and distributes them in python wheels for easy installation on development pc’s.

Version

The release version of this package directly corresponds to the micropython release it’s built against.

If a wrapper update is needed for a particular release version, it will be updloaded with a .postN version

Weekly releases build against master should be available at: https://gitlab.com/alelec/mpy_cross/pipelines These will have version numbers that reflect the previous release and the current git hash built against.

Usage

mpy-cross can be run in three different ways

  • From python command line

    python -m mpy_cross <args>
    python -m mpy_cross --version
  • From python code

    import mpy_cross
    
    mpy_cross.run(*args, **kwargs)
    
    import subprocess
    proc = mpy_cross.run('--version', stdout=subprocess.PIPE)

where *args are arguments passed to mpy-cross, **kwargs are arguments to pass to subprocess.Popen() internally

  • Standalone

    # Print out path to actual mpy-cross exe
    python -c "import mpy_cross; print(mpy_cross.mpy_cross)"
    > /home/andrew/.local/share/virtualenvs/mpy_cross-gSGkki0d/lib/python3.5/site-packages/mpy_cross/mpy-cross
    /home/corona/.local/share/virtualenvs/mpy_cross-gSGkki0d/lib/python3.5/site-packages/mpy_cross/mpy-cross --version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mpy_cross-1.8-py2.py3-none-manylinux1_x86_64.whl (75.7 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.8-py2.py3-none-manylinux1_i686.whl (75.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mpy_cross-1.8-py2.py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for mpy_cross-1.8-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3e5acaad3c90baa84e9c4f0036ace9e63d8d1a04e1b2c7f4b82caf6c5c0e1690
MD5 9bca297378a7ae4b34f1f5792fb2d160
BLAKE2b-256 4ba376a794455a01a9a525fae41fa4b41eeb2ee7fc370e4b1106f1bf95c48538

See more details on using hashes here.

File details

Details for the file mpy_cross-1.8-py2.py3-none-manylinux1_i686.whl.

File metadata

File hashes

Hashes for mpy_cross-1.8-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 191ddfd8c9e824e03263cdc19a6a7644aa0a8eafbfc308507e2930f0a57df0b8
MD5 336cb51dcb323039022d40f730b7ab99
BLAKE2b-256 686b6c549f8c920e581464ee03a374f02c975444e5e76a788219d19f8c611732

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page