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

mpy_cross-1.14-py2.py3-none-win_amd64.whl (158.7 kB view details)

Uploaded Python 2 Python 3 Windows x86-64

mpy_cross-1.14-py2.py3-none-win32.whl (148.7 kB view details)

Uploaded Python 2 Python 3 Windows x86

mpy_cross-1.14-py2.py3-none-manylinux2014_armv7l.whl (111.1 kB view details)

Uploaded Python 2 Python 3

mpy_cross-1.14-py2.py3-none-manylinux2014_aarch64.whl (125.6 kB view details)

Uploaded Python 2 Python 3

mpy_cross-1.14-py2.py3-none-manylinux1_x86_64.whl (120.5 kB view details)

Uploaded Python 2 Python 3

mpy_cross-1.14-py2.py3-none-manylinux1_i686.whl (120.8 kB view details)

Uploaded Python 2 Python 3

mpy_cross-1.14-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 (153.4 kB view details)

Uploaded Python 2 Python 3 macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: mpy_cross-1.14-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 158.7 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.14-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 5fb19b4024b85818d25b72932f173d2c7b3f91bae165525f6bbd55dfba7b0b71
MD5 9a95b502b4d7ae8338171490f719341e
BLAKE2b-256 5d34aac34368fc5826b581712634bddadc2a561cb2b8ca00b57494523946225e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.14-py2.py3-none-win32.whl
  • Upload date:
  • Size: 148.7 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.14-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 d6d94a7dae120e8c35e70bfd2f1881c6cf283164504179e152eaad73e352afd1
MD5 9bfaa756b50593117ed4411f53be225f
BLAKE2b-256 1fdfdc5c264be78ad51798e74086bc4d9070ca40572ce319b06c37e736257979

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.14-py2.py3-none-manylinux2014_armv7l.whl
  • Upload date:
  • Size: 111.1 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.14-py2.py3-none-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 4e4bbdd299ebf70212b83e65dad02f8aeb2849cdb90fad5a3716179308494878
MD5 01e899f3b359ebf9aa1b58c1457456f1
BLAKE2b-256 be9b1c00a3fc4839af6753b0edc5843021d1d06dc4a3f47e0926f35b0f6838c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.14-py2.py3-none-manylinux2014_aarch64.whl
  • Upload date:
  • Size: 125.6 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.14-py2.py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 88ca4f0f4f1966d883aa7d50b3f07aad75be6f80c556705f2cf9906262e6fe34
MD5 a504b38fa5a26fa525142398cdcd7bbc
BLAKE2b-256 7bf4f0cd61d25ec083e77333dedfd5e54793def0dac41c69d39a30a1470164dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.14-py2.py3-none-manylinux1_x86_64.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.14-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e46df5e1260aec23db7f3a13f03ddccf595493b8e300368aaedf7a2d1fdfe6b5
MD5 ad8714937ab3b5b2648e1ce0f44d5804
BLAKE2b-256 6a3c3b1f12fef6c6934291290c7cdd429837b3e6662c743f43aa1f7d924e41c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.14-py2.py3-none-manylinux1_i686.whl
  • Upload date:
  • Size: 120.8 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.14-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 7e5e3dfe49ee97f895cfeb55c4550e03c52dcd7a17ce124e340b6259c15f6021
MD5 97bd35a19f06fb7b40fcb2257d3292d4
BLAKE2b-256 8227842b2c47b25fa84a85c43c357d1680a212503a8a01df4eb2171300547e1d

See more details on using hashes here.

File details

Details for the file mpy_cross-1.14-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.14-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 30dd69e146f34715a2ff7c519d446e252ed59d7c2e82f6c429e5cf92065c7770
MD5 1ccaa0250fe24a1c5186b6c136cce16e
BLAKE2b-256 9720765115cd011f10365bf67af2f464efa6df57d2907dbdc66bda3acd6fa343

See more details on using hashes here.

Supported by

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