1
0

android build: enable asserts, and add sanity-check for it

Note that 0f541be6f1 added a warning log if asserts are disabled.
It is intentional that these two things are in separate files:
We always want to log that warning, even if someone is using electrum as a library.
However, in that latter case, I think it's fine not to sys.exit(), but leave the decision up to the library user.

Similar thinking when running from source: let's log the warning but don't sys.exit().
This commit is contained in:
SomberNight
2023-03-31 16:00:19 +00:00
parent 847c8d4941
commit 0e5464ca13
2 changed files with 17 additions and 3 deletions

View File

@@ -179,8 +179,8 @@ RUN cd /opt \
&& git remote add sombernight https://github.com/SomberNight/python-for-android \
&& git remote add accumulator https://github.com/accumulator/python-for-android \
&& git fetch --all \
# commit: from branch accumulator/electrum_20210421d (note: careful with force-pushing! see #8162)
&& git checkout "3c2750795ba93aa1a3e513a13c2ea2ac5bddba17^{commit}" \
# commit: from branch sombernight/electrum_20210421d (note: careful with force-pushing! see #8162)
&& git checkout "ec82acf894822373ae88247658a233c77e76f879^{commit}" \
&& python3 -m pip install --no-build-isolation --no-dependencies --user -e .
# build env vars