1
0

mac build: don't create __pycache__ folders

The .pyc files would get created when a .py module is imported,
which is done during the build for some source files by pyinstaller
(when it analyses imports).

I considered setting PYTHONDONTWRITEBYTECODE=1 in build_tools_util.sh,
to apply to all builds, but am not sure how it would affect the Android build,
where we actually want .pyc files included in the apk.
This commit is contained in:
SomberNight
2021-07-12 18:07:31 +02:00
parent 8945dcda7a
commit 659c00e06b
2 changed files with 2 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
NAME_ROOT=electrum
export PYTHONDONTWRITEBYTECODE=1
export PYTHONDONTWRITEBYTECODE=1 # don't create __pycache__/ folders with .pyc files
# Let's begin!

View File

@@ -7,6 +7,7 @@ PACKAGE=Electrum
GIT_REPO=https://github.com/spesmilo/electrum
export GCC_STRIP_BINARIES="1"
export PYTHONDONTWRITEBYTECODE=1 # don't create __pycache__/ folders with .pyc files
. "$(dirname "$0")/../build_tools_util.sh"