Migrate to use cmd, cmd_expect and file_extract from Buildops. #1674
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is part of a bigger refactor to reduce the size and complexity of the Buildozer class (and bring it closer to cross-platform).
Remove buildozer's cmd, cmd_expect and file_extract functions, and tests.
Migrate clients to use buildops.cmd()
sensible
param;quiet
has the same effect.buildops.cmd()
could be made to default to os.environ. I did not do this, because I can't tell which need special env vars. I wanted to ensure that every call was updated to include the env. Once that migration is done, it could be modified to accept a default. Leaving that for future refactors.cmd
, I ported the client code to Python - which is a better solution for maintenance.Migrate clients to use buildops.cmd_expect()
Migrate clients to use buildops.file_extract()
cmd()
and also now needs an environ parameter. [This is the reason I had to bundle it with this larger PR.]osx.py
to use extract_file instead of cmd('unzip')Last minute: Rolled back changes to extracting zipfiles.
unzip
shell command (which is not platform dependent).pythonforandroid.toolchain create
was failing with the config script complaining about an error in/home/runner/work/buildozer/buildozer/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi
and henceC compiler cannot create executables
, but only on the CI machine; it works fine on my VirtualBox test machine. Still figuring out what might be different. Hints welcome!Trivial changes