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 filename with .mpy extension, or stdout if input is stdin) -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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file mpy_cross-1.22.2-py2.py3-none-win_amd64.whl
.
File metadata
- Download URL: mpy_cross-1.22.2-py2.py3-none-win_amd64.whl
- Upload date:
- Size: 144.6 kB
- Tags: Python 2, Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb5436a8442f670aff20a8ff5ddf9b6431db6fd0d3894d9a87ddfb136826b019 |
|
MD5 | d5faf6ff73240f4edf4a84fd200fb62c |
|
BLAKE2b-256 | 958dbc2edaa56694072639431f2847118c574bee73eece63828471dd9cedd0be |
File details
Details for the file mpy_cross-1.22.2-py2.py3-none-win32.whl
.
File metadata
- Download URL: mpy_cross-1.22.2-py2.py3-none-win32.whl
- Upload date:
- Size: 134.4 kB
- Tags: Python 2, Python 3, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dd8462946f1977ed2868b08b2b1590a97cba8efaf75c8b7384c2d1795f3e32c |
|
MD5 | 6337f0e531bc7a9213171d472d839bd5 |
|
BLAKE2b-256 | e9821ccfc8dbff5defe76ce3b034d2444bc3db48a645c33e808c1c2b6d9c140b |
File details
Details for the file mpy_cross-1.22.2-py2.py3-none-manylinux2014_armv7l.whl
.
File metadata
- Download URL: mpy_cross-1.22.2-py2.py3-none-manylinux2014_armv7l.whl
- Upload date:
- Size: 131.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a25cf2237c99272ca780ec1adeb5e0c27e461b10af15c758e5000a23986d644e |
|
MD5 | ae2bd7f35fd40b7f3166403b79abdf63 |
|
BLAKE2b-256 | f364f07613e3ded6553e132f76df789586993487523987fca1adbb06ec27cd39 |
File details
Details for the file mpy_cross-1.22.2-py2.py3-none-manylinux2014_aarch64.whl
.
File metadata
- Download URL: mpy_cross-1.22.2-py2.py3-none-manylinux2014_aarch64.whl
- Upload date:
- Size: 153.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f07d011dde289dbada9d67b688c21eb016b0bb5b51a2852f2d490fa3ee0369e |
|
MD5 | e8e7d98a03965200b8b39f106dc9086e |
|
BLAKE2b-256 | 7d49933b582282340fc8dd75664da1bbf21791fd99eb9932b291e7c7c6419ce4 |
File details
Details for the file mpy_cross-1.22.2-py2.py3-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: mpy_cross-1.22.2-py2.py3-none-manylinux1_x86_64.whl
- Upload date:
- Size: 132.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f80439288e27502af41d8b21b2b409ebfac1a0408eabceeabc451d95d1f1d8b8 |
|
MD5 | 21a0fc16ad538eb739ec2e0c95ea8042 |
|
BLAKE2b-256 | acba9b03fd69461a7ba765a714b361f586d71a2f5bc96d54a8a3e4b7bf9eeaff |
File details
Details for the file mpy_cross-1.22.2-py2.py3-none-manylinux1_i686.whl
.
File metadata
- Download URL: mpy_cross-1.22.2-py2.py3-none-manylinux1_i686.whl
- Upload date:
- Size: 131.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38caa7b8aba2224e2423409cdb52091afffa99899902a2470ec6612d4a8e3ac9 |
|
MD5 | 11c7288a76971ee3a73b46331c683cce |
|
BLAKE2b-256 | 47edf01c9233e9918d3144a55f8b83b44a0726bd4d97994f9aea93350ef09ac9 |
File details
Details for the file mpy_cross-1.22.2-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
- Download URL: mpy_cross-1.22.2-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
- Upload date:
- Size: 161.0 kB
- Tags: 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
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c93d53814d6838d49674cbd5643f0e5bb4fed29c713a8028ad3bb3c574fbbd47 |
|
MD5 | 90d662428610ce39956067015b4f5b10 |
|
BLAKE2b-256 | 0cff1212d79cb4e10851f5332930630c8e8336c5a07d252c4741943077ecdf62 |