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

Uploaded Python 2Python 3Windows x86-64

mpy_cross-1.18-py2.py3-none-win32.whl (148.8 kB view details)

Uploaded Python 2Python 3Windows x86

mpy_cross-1.18-py2.py3-none-manylinux2014_armv7l.whl (111.2 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.18-py2.py3-none-manylinux2014_aarch64.whl (143.6 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.18-py2.py3-none-manylinux1_x86_64.whl (120.7 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.18-py2.py3-none-manylinux1_i686.whl (120.9 kB view details)

Uploaded Python 2Python 3

mpy_cross-1.18-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.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.18-py2.py3-none-win_amd64.whl.

File metadata

  • Download URL: mpy_cross-1.18-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 158.9 kB
  • Tags: Python 2, Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for mpy_cross-1.18-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e979dba96405687800ad0c38c568093cce264c86de950a660e3355600f3cf47b
MD5 c70b45a676c1c4c1de6e98db60239ca4
BLAKE2b-256 6bb89384879a19fd909ac6002a98d3a15c8b779cde81ce119ba57729b519b8f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.18-py2.py3-none-win32.whl
  • Upload date:
  • Size: 148.8 kB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for mpy_cross-1.18-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 01bea72298a661214e0a8352b6e0eb8ac875dd24efc20bc9f2835355f46a778a
MD5 61588ae85ef3874845c62c7db18dc1b4
BLAKE2b-256 a9c85d4ed6978e14911cf10981504efc227b9abe498086826cfdd16db26bf099

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.18-py2.py3-none-manylinux2014_armv7l.whl
  • Upload date:
  • Size: 111.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for mpy_cross-1.18-py2.py3-none-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 1bf739870f657c0d7cfd278a733a55c05b08007a8f010cedb31c0c7f50b50db2
MD5 7d93c4e31abef04a836e6a553b106c56
BLAKE2b-256 b20545520c8fbd13141658db50da8d9b6f571a401f3fd2469142a099c5eddd03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.18-py2.py3-none-manylinux2014_aarch64.whl
  • Upload date:
  • Size: 143.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for mpy_cross-1.18-py2.py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 91c322eb89393cf659e076a94cde881324c08fe87dee289dd017aae00192f8e6
MD5 cdeb1d7f1ce14bfba7063b56830edbfa
BLAKE2b-256 015f482b9f6e9d776757a4aaa5f149ed0085289a3ed2d039474f9d6f1bf9be5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.18-py2.py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 120.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for mpy_cross-1.18-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 98bd0ee6711576a94ed493896692942c6046b461c49608e3c8e0c95e1d2c89f2
MD5 a09e249907829f9f7bffc7544b819acc
BLAKE2b-256 bf5d93501201e41d0ae2f940a74a911191618575819bba917feabcbc1e0cf4e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpy_cross-1.18-py2.py3-none-manylinux1_i686.whl
  • Upload date:
  • Size: 120.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for mpy_cross-1.18-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 a04d6782505ebab179a818653c220944b609fa15781d98746525433972845a30
MD5 6db62938aebbc3c2080f8080b67c535f
BLAKE2b-256 7d221896c218bad0eb9408d82130e058db34ff751cf414bd72479e925edc6f27

See more details on using hashes here.

File details

Details for the file mpy_cross-1.18-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.18-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 be0140f4a130514c2f7801f6d9ce54a6b4ca3ae2116f20dbbfd5686cd3c734c0
MD5 93bf586a2e86f8f80bfc40e5c32d2b53
BLAKE2b-256 1f81b6ecd089c2b825127f936c2a50e061670914321057266385cddc073cd2ed

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