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

Uploaded Python 2Python 3Windows x86-64

mpy_cross-1.19.1-py2.py3-none-win32.whl (150.7 kB view details)

Uploaded Python 2Python 3Windows x86

mpy_cross-1.19.1-py2.py3-none-manylinux2014_armv7l.whl (112.1 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.19.1-py2.py3-none-manylinux2014_aarch64.whl (145.6 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.19.1-py2.py3-none-manylinux1_x86_64.whl (122.7 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.19.1-py2.py3-none-manylinux1_i686.whl (122.2 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.19.1-py2.py3-none-macosx_11_0_universal2.whl (316.1 kB view details)

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

mpy_cross-1.19.1-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 (155.8 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.19.1-py2.py3-none-win_amd64.whl.

File metadata

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

File hashes

Hashes for mpy_cross-1.19.1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4941f54e3d5330e7f538f84d352cf3633280052fe5abefaca4f59d00e6c7075a
MD5 c95ac396fc270130c71b06823b624243
BLAKE2b-256 b02682629616c2aa6ed0efb18dfb4e1b1692a9b37e4f59b3e0de0093a9f2a339

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mpy_cross-1.19.1-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 197a7cef34128d1f2f1dbd90db05924bdb30180deb09340efbddf1fb8fe5f04e
MD5 0a508994d916cb06a9542416a240ec1e
BLAKE2b-256 255d9a614f437a20af302742069d5215f5dd43a20b3ed5c6ebadb6bf32aa6ded

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mpy_cross-1.19.1-py2.py3-none-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 6e62e99149ed25213fa3a55d5509111a647aee7dea4d670a6a07434455adf998
MD5 f5b9a968e84c6b25562abced44b0ef1a
BLAKE2b-256 083a719599b5e62fa87f4c909037a7660930b839b6debb17477db25f9a4cf2a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mpy_cross-1.19.1-py2.py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3be50b473f3271128971a670366b950636989bc2a23492fa7e8a51c26d96e6f1
MD5 f252313693a57bc76c4dc42d9ba0a3a2
BLAKE2b-256 982618fa23882b1d37b4cf5c4bbe99035aba8d6e93f3ea81d0cdfbd5c0c4612a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mpy_cross-1.19.1-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0dbc5c6106643bf84431cca61bcae5d9471233617e14de3ffd9d6f490dbd3106
MD5 2735a4e0003a56f853de78339aab7a9e
BLAKE2b-256 beca2ae902d85c66202b54d9bd00bf2133ca6196aaebc2b136d024f00fb29835

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mpy_cross-1.19.1-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 10d142b1ea8277bbaa1428f7ddf5e860f036b73553d339883aa6a40a62d58dcd
MD5 54a91f792f1a9ef6465ef87d994edee9
BLAKE2b-256 3be7d5bf933ae3e5a791affc03b5a461c8f69c20f5a040e022938404ea381ba6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mpy_cross-1.19.1-py2.py3-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 6a27b4074340b6b668aca08308eb3c82edb9437947f68225796f8516f19d5442
MD5 3e659909e318bb5ff0961c930455ee70
BLAKE2b-256 ef1f49aa841463a959024b68cbb8abbf21fd7a383ae2f0cc6f1db870b1c24146

See more details on using hashes here.

File details

Details for the file mpy_cross-1.19.1-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.19.1-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 1668472a4c9982d99fbac7ec8ae452d8b7b09249dfa6c7697fc80d33266c0f4d
MD5 ca7e934f20a06f040255659559541075
BLAKE2b-256 a64481c9990b030f349bb7870e049d8d954e7b9dfea858b0f0dae9e44c1c1157

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