From 659c00e06b1cf9e7e68f58d5a608f1587021dc91 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 12 Jul 2021 18:07:31 +0200 Subject: [PATCH] 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. --- contrib/build-wine/build-electrum-git.sh | 2 +- contrib/osx/make_osx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/build-wine/build-electrum-git.sh b/contrib/build-wine/build-electrum-git.sh index 991f5fec1dbc..1dbe1511dcde 100755 --- a/contrib/build-wine/build-electrum-git.sh +++ b/contrib/build-wine/build-electrum-git.sh @@ -2,7 +2,7 @@ NAME_ROOT=electrum -export PYTHONDONTWRITEBYTECODE=1 +export PYTHONDONTWRITEBYTECODE=1 # don't create __pycache__/ folders with .pyc files # Let's begin! diff --git a/contrib/osx/make_osx b/contrib/osx/make_osx index acae6e42e625..05a31758b689 100755 --- a/contrib/osx/make_osx +++ b/contrib/osx/make_osx @@ -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"