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
-march=<arch> : set architecture for native emitter; x86, x64, armv6, armv6m, 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.20.0-py2.py3-none-win_amd64.whl (144.1 kB view details)

Uploaded Python 2Python 3Windows x86-64

mpy_cross-1.20.0-py2.py3-none-win32.whl (133.9 kB view details)

Uploaded Python 2Python 3Windows x86

mpy_cross-1.20.0-py2.py3-none-manylinux2014_armv7l.whl (131.0 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.20.0-py2.py3-none-manylinux2014_aarch64.whl (153.0 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.20.0-py2.py3-none-manylinux1_x86_64.whl (132.1 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.20.0-py2.py3-none-manylinux1_i686.whl (131.2 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.20.0-py2.py3-none-macosx_11_0_universal2.whl (323.9 kB view details)

Uploaded Python 2Python 3macOS 11.0+ universal2 (ARM64, x86-64)

mpy_cross-1.20.0-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 (160.5 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.20.0-py2.py3-none-win_amd64.whl.

File metadata

  • Download URL: mpy_cross-1.20.0-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 144.1 kB
  • Tags: Python 2, Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for mpy_cross-1.20.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 074fb79da38ca699440cb9001ffbe2e84dab33256349e589c457ac5ea7fe5ada
MD5 2db5197187873fd3e3a54de4383802e3
BLAKE2b-256 ea0e9f28ee13ccf6a2db94f0f27b3c40cf272125ce6a5990d9ed130bafb86a88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.20.0-py2.py3-none-win32.whl
  • Upload date:
  • Size: 133.9 kB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for mpy_cross-1.20.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 08fc7808abecc4586a03d3a9e519c9f7f257aa865b77aad40e5948a52c81b14b
MD5 ca7347db6d5ccaccedc7b08f7495f38a
BLAKE2b-256 05a7153dd477c1489b978cd1dfa62872d7c211ba28273047272b3ec826043e12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mpy_cross-1.20.0-py2.py3-none-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 04f0ad333a168cbe2f6a9753f2d74bcf89d6ced25e14cef2585fd154d7975e09
MD5 1f3103c67917fd6a132ec6941383c45c
BLAKE2b-256 4c4c7fab6c71026dd0f361aa24669ef8eadd368b1d1d0a022d4bfaf0b40b47d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mpy_cross-1.20.0-py2.py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 09f9d28b103468aad3d243e7767ad216e5a169f63acbd3a3dd21eac57ebb703a
MD5 e32fea8fd56a9aef54ec7ceac7255bf0
BLAKE2b-256 2f22bd0ca8a9c5e4ade589f4ab1366881dbdfa01866f4ada3a5dfd83e2995ac9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mpy_cross-1.20.0-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cd5dc8c00e58c4fde3330c3bb3ee66d1e12749a983d14ab58784002c5e52ec90
MD5 55aff1d4b5fc7f2a93d7a739122e2afa
BLAKE2b-256 4d5feae839ff1e690bf3647e516b5f40403abe452e1075c668cd520c09f38b23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mpy_cross-1.20.0-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 f34f6b29486a45ded52e9525692a0db925d4d61e50c8620e5f979dd21e8fcb7e
MD5 db5087ead1859821c8fc2c94d3bb6dee
BLAKE2b-256 f9ca1043fb32dc2e84faeda555b04304f1b6fe3d3bf26d2e13f3eddd5a2f0b94

See more details on using hashes here.

File details

Details for the file mpy_cross-1.20.0-py2.py3-none-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for mpy_cross-1.20.0-py2.py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 b64ddf9a43f32319a27be2beba88b53df14152797cf77a640a3325dd07de7a93
MD5 376a0b0633aff2371a876b6b8e4f0205
BLAKE2b-256 adbdf2b8bc211d7eb501504eafb5aa397e23ef08d97a7d7e5b3d1fddae343f93

See more details on using hashes here.

File details

Details for the file mpy_cross-1.20.0-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.20.0-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 8161edb01c0b7eda6a70c85301615f076fae329e038cc7d5c42865a13535a2a8
MD5 32e6b6a5cd2d1707890e90855df62ede
BLAKE2b-256 be2bf6372de74c22dc02e78c693476978e2bf62253dc81df396bbbbac537ece7

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