mpy_cross for multiple versions? #15176
Replies: 5 comments 6 replies
-
See https://pypi.org/project/mpy-cross-multi/ Curtesy of @dlech |
Beta Was this translation helpful? Give feedback.
-
The https://pypi.org/project/mpy-cross-multi/ says it's good to run on versions >=3.10 <4.0 so I'm assuming
means my Python.3.9 is 3.09? I'm keen to not loose my v1.17 mpy-cross that runs in v3.9 python. If I upgrade to 3.10 & mpy-cross stops working & mpy-cross-multi is a dud then I'm worse off. Has anybody actually tried mpy-cross-multi? Does it actually work? |
Beta Was this translation helpful? Give feedback.
-
also using pipx you could use
|
Beta Was this translation helpful? Give feedback.
-
Yeah I realise this is a highly requested feature for mpy_cross. I resisted adding it to my package on pypi because it's a fully automated build and deploy and I couldn't figure out how to add back support easily without manual intervention. I've got it figured now though so been working on this the last few nights. I think it works pretty well now though needs some more testing before I release it: https://gitlab.com/alelec/mpy_cross/-/merge_requests/12 Wheels for each platform can be downloaded for testing from the pipeline archives: |
Beta Was this translation helpful? Give feedback.
-
The https://pypi.org/project/mpy-cross/ Older Version SupportThis package also supports running mpy-cross in compatibility mode to generage mpy files for older releases of micropython. Compatibility mode can be specified either by micropython version, eg:
Or by specifying the bytecode version, eg:
Usage
|
Beta Was this translation helpful? Give feedback.
-
I've been using mpy_cross for v1.17 upython to squash my .py files to.mpy. The problem is lately I need to squash v1.22 .py files & I know if I download the v1.22 version I'll loose the v1.17 version.
The last time I asked this question there was talk of a universal mpy_cross that could squash any version .py file. Just wondering if that has transpired or not? If not any suggestions for how to have 2 versions of mpy_cross on the same windows PC.
Beta Was this translation helpful? Give feedback.
All reactions