adjust sys.platform for various C linkers#3564
adjust sys.platform for various C linkers#3564pmp-p wants to merge 3 commits intomicropython:masterfrom pmp-p:patch-1
Conversation
android ffi modules require identification of platform as they use a different model. ffilib would load unversionned lib*.so sys.platform would give 'android' and at REPL: MicroPython v1.9.3-240-ga275cb0-dirty on 2018-01-14; android version
|
cpython may follow that too, as proposed here in case of true android support https://mail.python.org/pipermail/python-dev/2018-January/151874.html https://bugs.python.org/issue32637 edit/ wasm has been defined for good, so just use that. |
|
The latest change is unlikely for good. There's no trademark for word android. The fact that there's somebody's trademark sounding similarly is purely a coincidence. |
|
i don't know, some1 i spoke with had his site closed for just using that word in his application name ( a javascript coding IDE ), could be a store specific store rule i did not dig further. Also for a pet project on allwinner soc i have with micropython+bionic libc instead of java+bionic libc i'd like to break free of that word for good. even if "blobbed_platorm_pick_a_number" would be probably as good as any of the others i'm open to suggestions :) |
IMHO, "android" is the obvious choice. When (if) some entity will have issues with that, ideas for something else can be considered. |
|
Thanks for helping deciding ! i intend to keep some android/wasm/midipix ports up to date they define |
|
Closing because CPython still uses Feel free to reopen if there's still a need for this, with details on why it's needed. |
android ffi modules require identification of platform as they use a different model.
ffilib.py would load unversionned lib*.so because android are not versionned like linux assumed default.
wasm platform use .wasm files for dlopen()
sys.platform would give
'android'and at REPL:MicroPython v1.9.3-240-ga275cb0-dirty on 2018-01-14; android versionsys.platform would give
'wasm'and at REPL:MicroPython v1.9.3-240-ga275cb0-dirty on 2018-01-14; wasm versionuse case: https://github.com/pmp-p/micropython-ffigen
android => android
emscripten ( that's just the compiler) => wasm ( is the standard )