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

Uploaded Python 2 Python 3 Windows x86-64

mpy_cross-1.12-py2.py3-none-win32.whl (147.1 kB view details)

Uploaded Python 2 Python 3 Windows x86

mpy_cross-1.12-py2.py3-none-manylinux2014_armv7l.whl (122.3 kB view details)

Uploaded Python 2 Python 3

mpy_cross-1.12-py2.py3-none-manylinux2014_aarch64.whl (144.2 kB view details)

Uploaded Python 2 Python 3

mpy_cross-1.12-py2.py3-none-manylinux1_x86_64.whl (119.4 kB view details)

Uploaded Python 2 Python 3

mpy_cross-1.12-py2.py3-none-manylinux1_i686.whl (119.6 kB view details)

Uploaded Python 2 Python 3

mpy_cross-1.12-py2.py3-none-macosx_11_0_universal2.whl (157.8 kB view details)

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

mpy_cross-1.12-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.2 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.12-py2.py3-none-win_amd64.whl.

File metadata

  • Download URL: mpy_cross-1.12-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 157.5 kB
  • Tags: Python 2, Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for mpy_cross-1.12-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2199dfc4858ef60860c2a7d538eb50ea21c161620b5309e80af6e536bf474086
MD5 be010816fd4258023b8c8d215669ec3d
BLAKE2b-256 b021b36049e64672cd2cedc43e11617b8d4abd1710ef22633effdbd20fd628ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.12-py2.py3-none-win32.whl
  • Upload date:
  • Size: 147.1 kB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for mpy_cross-1.12-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 2ff19640c1320ea2c387b02e790043bbcb1f4b07e489d08aa73736e7f553a0cd
MD5 8ad09f9f006efe8372de49c6677189c5
BLAKE2b-256 ef9672167ab8d058a071c0a2fd4ae0635e5cfaa5de02a5ba2e9ca1bcb11badf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mpy_cross-1.12-py2.py3-none-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 965fb7598af22609bd1c8a25399ab3768211dc99500afdccc79925082f326472
MD5 b8a243d948767db773cacb96a0213ebb
BLAKE2b-256 5a1244e1205d222c656d98c2c1f9ec20f83b8ba87082b654ab54880e4a86fd64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mpy_cross-1.12-py2.py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 be340073916681390759697f9ccbfea66c6b81ede83abab06ffedfc4ffc3ce1f
MD5 82039687a5d4412984399fde473bab9f
BLAKE2b-256 28bdeb7433fef97534e6c63558a7b3df3e3d73081513e30c488cc9a110f08978

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.12-py2.py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 119.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for mpy_cross-1.12-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 14d14fdb1afbd700a91da50a6c35b43467d97c30ee8003c3212938a494968927
MD5 0fe2cd838afdd7c7d3037dca8c010c85
BLAKE2b-256 bcf3b7afc42ae48cbf020a1a92e6818c7441c231a03da21d7165d7fc59d11165

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.12-py2.py3-none-manylinux1_i686.whl
  • Upload date:
  • Size: 119.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for mpy_cross-1.12-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 b870014c6ba8974aab880747ff762eb8bef3550f18f66f5cfdae4a6443332cd3
MD5 de1d8c258d231c31ebeed91755c5e8bc
BLAKE2b-256 dae9c58cae90ce0f47deadc3577eba3b4b9f820029bdebf9c9a4adfff57990dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mpy_cross-1.12-py2.py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 29b413aa5bd9cc8fe96c3eedf864995e77d1a5d13c38c06410995b06204bf9b2
MD5 76b334067d1d6dadff2c61c691bfcf2a
BLAKE2b-256 0f95f446ea3f404db949fd4923f63b4a40d5ddbb0942a2a24edb5c3b62b5c739

See more details on using hashes here.

File details

Details for the file mpy_cross-1.12-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.12-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 14be23507f39516b2ec869faae00726c92f5dc8df753390407653e37ba6b0783
MD5 d5a3f6790301ae620a38c5a821a78638
BLAKE2b-256 37f1667663f4b2b7e531666dc1664628b267ad11405c04ab983ea03e8c754106

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