python-for-android icon indicating copy to clipboard operation
python-for-android copied to clipboard

gevent recipe build fail

Open RobertFlatt opened this issue 2 years ago • 2 comments

Logs

[1m[90m[DEBUG][39m[0m:   [90m->[0m running python3 setup.py build_ext [0m
[1m[90m[DEBUG][39m[0m:   	Traceback (most recent call last):
[1m[90m[DEBUG][39m[0m:   	  File "/home/bobf/ex/regression/.buildozer/android/platform/build-arm64-v8a/build/other_builds/gevent/arm64-v8a__ndk_target_21/gevent/setup.py", line 46, in <module>
[1m[90m[DEBUG][39m[0m:   	    from _setuplibev import libev_configure_command
[1m[90m[DEBUG][39m[0m:   	  File "/home/bobf/ex/regression/.buildozer/android/platform/build-arm64-v8a/build/other_builds/gevent/arm64-v8a__ndk_target_21/gevent/_setuplibev.py", line 34, in <module>
[1m[90m[DEBUG][39m[0m:   	    " && sh ./configure --host={} ".format(os.environ['TOOLCHAIN_PREFIX']),
[1m[90m[DEBUG][39m[0m:   	  File "/home/bobf/ex/regression/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/Lib/os.py", line 680, in __getitem__
[1m[90m[DEBUG][39m[0m:   	    raise KeyError(key) from None
[1m[90m[DEBUG][39m[0m:   	KeyError: 'TOOLCHAIN_PREFIX'

RobertFlatt avatar May 30 '23 00:05 RobertFlatt

did you find any solution to this problem?

AbdulkadirAktuerk avatar Sep 19 '23 16:09 AbdulkadirAktuerk

No I didn't try. I was just doing regression testing to see what didn't work. so I didn't care why it didn't work.

It looks like the issue is the the patch https://github.com/kivy/python-for-android/blob/develop/pythonforandroid/recipes/gevent/cross_compiling.patch It expects TOOLCHAIN_PREFIX to be an environment variable, and it is not. Seems reasonable this might be related to the NDK toolchain file at least if gevent uses cmake.

But I don't know anything about how gevent is built, so I know that I don't know.

RobertFlatt avatar Sep 20 '23 04:09 RobertFlatt