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

mpy-cross options

usage: mpy-cross [<opts>] [-X <implopt>] <input filename>
Options:
--version : show version information
-o : output file for compiled bytecode (defaults to input with .mpy extension)
-s : source filename to embed in the compiled bytecode (defaults to input file)
-v : verbose (trace various operations); can be multiple
-O[N] : apply bytecode optimizations of level N

Target specific options:
-msmall-int-bits=number : set the maximum bits used to encode a small-int
-mno-unicode : don't support unicode in compiled strings
-mcache-lookup-bc : cache map lookups in the bytecode
-march=<arch> : set architecture for native emitter; x86, x64, armv6, armv7m, armv7em, armv7emsp, armv7emdp, xtensa, xtensawin

Implementation specific options:
  emit={bytecode,native,viper} -- set the default code emitter
  heapsize=<n> -- set the heap size for the GC (default 2097152)

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.13-py2.py3-none-win_amd64.whl (158.3 kB view details)

Uploaded Python 2Python 3Windows x86-64

mpy_cross-1.13-py2.py3-none-win32.whl (148.4 kB view details)

Uploaded Python 2Python 3Windows x86

mpy_cross-1.13-py2.py3-none-manylinux2014_armv7l.whl (110.7 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.13-py2.py3-none-manylinux2014_aarch64.whl (125.3 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.13-py2.py3-none-manylinux1_x86_64.whl (120.3 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.13-py2.py3-none-manylinux1_i686.whl (120.5 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.13-py2.py3-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (152.7 kB view details)

Uploaded Python 2Python 3macOS 10.10+ Intel (x86-64, i386)macOS 10.10+ x86-64macOS 10.6+ Intel (x86-64, i386)macOS 10.9+ Intel (x86-64, i386)macOS 10.9+ x86-64

File details

Details for the file mpy_cross-1.13-py2.py3-none-win_amd64.whl.

File metadata

  • Download URL: mpy_cross-1.13-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 158.3 kB
  • Tags: Python 2, Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for mpy_cross-1.13-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7595377b180081b91acc92e54d82c829ca63b0729645b3a4cc4b8e0a751ba7d4
MD5 e965566446acd54f9acf48e4450ddab2
BLAKE2b-256 2eae95c8644cefbf03b4109e2989d65192233cc3b20bbe6c948737c1051caa64

See more details on using hashes here.

File details

Details for the file mpy_cross-1.13-py2.py3-none-win32.whl.

File metadata

  • Download URL: mpy_cross-1.13-py2.py3-none-win32.whl
  • Upload date:
  • Size: 148.4 kB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for mpy_cross-1.13-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 500e8a1fe77a1b3039af01ef15411ce9b71e93505bb14de8bb9723303442d8e7
MD5 29998f77b656572a4ba534955dcc360b
BLAKE2b-256 f4db0fc086c347fca2d64106c92fae4e912c0cb0d70d58617a27580e2d1bbbc8

See more details on using hashes here.

File details

Details for the file mpy_cross-1.13-py2.py3-none-manylinux2014_armv7l.whl.

File metadata

  • Download URL: mpy_cross-1.13-py2.py3-none-manylinux2014_armv7l.whl
  • Upload date:
  • Size: 110.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for mpy_cross-1.13-py2.py3-none-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 5662778d8d881e0f45f3cc38b65bfea154149bb4d308ea67bd5c4e683c12ac06
MD5 cb8380dadbf68bc2ff49d6fae932b8f0
BLAKE2b-256 2283d61caa31269c3e110ab6bd3b2d3869b2e6984ed9ecf78341aef39635739d

See more details on using hashes here.

File details

Details for the file mpy_cross-1.13-py2.py3-none-manylinux2014_aarch64.whl.

File metadata

  • Download URL: mpy_cross-1.13-py2.py3-none-manylinux2014_aarch64.whl
  • Upload date:
  • Size: 125.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for mpy_cross-1.13-py2.py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a2b5416e56d86d4d9a4fcdb3960d0bd266484788ae0e9b6789e3854d0fdb5b0c
MD5 cc04a44f15a9f72f8d3f351f2bdaff3f
BLAKE2b-256 fabb811991ae55dac8e4efec39241d05ac499ca0f128fe2be0c462b4f1288823

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.13-py2.py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 120.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for mpy_cross-1.13-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 15cdeca2202f6f80f89281e3a724d16745d64f080500d12dc098ea24bc35fd96
MD5 0b2d08c89103aeb4f87b3c59f62e3e37
BLAKE2b-256 ff4c87c003cff2d5d8e30a59af64e20ea18cd2d4d3f6f3973cf6d07db9b1f130

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.13-py2.py3-none-manylinux1_i686.whl
  • Upload date:
  • Size: 120.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for mpy_cross-1.13-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 99ca5f129bb1883e13b26568dd1061b6b12a9fbd88524557140f2189bffb0fe3
MD5 199816ba50903d5f59732824e330ec1d
BLAKE2b-256 59dc826061b6b766bb7b70d9bc7b3f49ec60c67fb63b5b0b33882dc9a3b6c75e

See more details on using hashes here.

File details

Details for the file mpy_cross-1.13-py2.py3-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for mpy_cross-1.13-py2.py3-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 53c1225465b2acb7f40b15ea077af6866512c90eb871485718ff075b0366aad8
MD5 4b797f9170eaf528424b23b10601982d
BLAKE2b-256 069c48bda6bc41d1ee27f6e9ad90e89adfc5a4edc06ee359e94090869c4f74b3

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