|
Ran
|
Jobs
1
|
Files
88
|
Run time
1min
|
Badge
README BADGES
|
CirrusCI
android: add run-time patch to make pycryptodomex work to work around https://github.com/kivy/python-for-android/issues/1866 : > PyCryptodome >=3.6.0 crashes at runtime (since commit https://github.com/Legrandin/pycryptodome/commit/f5aa2c161). So actually the currently pinned version in the recipe does not work: > https://github.com/kivy/python-for-android/blob/80e4f059c/pythonforandroid/recipes/pycryptodome/__init__.py#L5 > > The issue at runtime is with ctypes. > > > Say I have a main script that just does the following (https://github.com/Legrandin/pycryptodome/blob/95ccce7ae/lib/Crypto/Util/_raw_api.py#L200): > ``` > import ctypes > ctypes.pythonapi.PyObject_GetBuffer > ``` > > This works with cpython on my laptop, but with the p4a-compiled python on Android it fails: > > ``` > 06-14 19:06:27.053 15246 15274 I python : Android kivy bootstrap done. __name__ is __main__ > 06-14 19:06:27.053 15246 15274 I python : AND: Ran string > 06-14 19:06:27.053 15246 15274 I python : Run user program, change dir and execute entrypoint > 06-14 19:06:27.092 15246 15274 I python : Traceback (most recent call last): > 06-14 19:06:27.092 15246 15274 I python : File "/home/user/wspace/electrum/.buildozer/android/app/main.py", line 84, in <module> > 06-14 19:06:27.093 15246 15274 I python : File "/home/user/wspace/electrum/.buildozer/android/platform/build/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Lib/ctypes/__init__.py", line 369, in __getattr__ > 06-14 19:06:27.093 15246 15274 I python : File "/home/user/wspace/electrum/.buildozer/android/platform/build/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Lib/ctypes/__init__.py", line 374, in __getitem__ > 06-14 19:06:27.094 15246 15274 I python : AttributeError: undefined symbol: PyObject_GetBuffer > ``` > > I have also tried to ac... (continued)
23624 of 37899 relevant lines covered (62.33%)
0.62 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
80.24 |
-0.29% | electrum/crypto.py |
| 1 |
59.53 |
-0.05% | electrum/lnpeer.py |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 6335746883190784.1 | 88 |
62.33 |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|