I'm sorry for a delay, but I'm not subscribed to this list, and I didn't
receive the reply to my address.

Thu Oct 20 10:48:29 EDT 2016, Tres Seaver:
>On 10/20/2016 05:43 AM, Radomir Dopieralski wrote:

[...]
>> For the hardware it runs on:
>>
>> Operating System :: Baremetal Environment :: Microcontroller
>> Environment :: Microcontroller :: PyBoard Environment ::
>> Microcontroller :: ESP8266 Environment :: Microcontroller ::
>> Micro:bit Environment :: Microcontroller :: WiPy Environment ::
>> Microcontroller :: LoPy Environment :: Microcontroller :: OpenMV
>>
>> I'm not sure if the latter makes sense, but it would certainly be nice
>> to be able to indicate in a machine-parseable way on which platforms
>> the code works.
>
>Are there actual binary wheels being uploaded which compiled for specific
>boards?  Or is it that the packages depend at runtime on board-specific
>features?

There is no wheel format for the MicroPython, at this moment. It is possible
to bytecode-compile modules into .mpy files, but those are compatible across
all platforms, as far as I can tell (but not across all versions).

On the other hand, the platforms themselves are not always perfectly
compatible, even though there is an ongoing effort to bring them closer
together, and to make most libraries work on all of the platforms without
modifications.

The Micro:bit platform is a kind of an outlier, since its default libraries are
considerably different from those on other platforms (presumably to make them
it easier to teach) -- which means that practically all hardware-related
libraries need a separate micro:bit version.

The PyBoard platfrom has as "pyb" module, retained for backwards compatibility,
that is specific to it, side by side by the more general "machine" module, that
is present on all platforms (except for the micro:bit) and which should work
the same everywhere.

In addition, different boards have different capabilities. The WiPy and ESP8266
boards have on-board WiFi and networking libraries, the PyBoard and micro:bit
have an accelerometer, the WiPy lacks support for floating point numbers, etc.

-- 
Radomir Dopieralski
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to