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:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
NAME_ROOT=electrum
|
NAME_ROOT=electrum
|
||||||
|
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
export PYTHONDONTWRITEBYTECODE=1 # don't create __pycache__/ folders with .pyc files
|
||||||
|
|
||||||
|
|
||||||
# Let's begin!
|
# Let's begin!
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ PACKAGE=Electrum
|
|||||||
GIT_REPO=https://github.com/spesmilo/electrum
|
GIT_REPO=https://github.com/spesmilo/electrum
|
||||||
|
|
||||||
export GCC_STRIP_BINARIES="1"
|
export GCC_STRIP_BINARIES="1"
|
||||||
|
export PYTHONDONTWRITEBYTECODE=1 # don't create __pycache__/ folders with .pyc files
|
||||||
|
|
||||||
|
|
||||||
. "$(dirname "$0")/../build_tools_util.sh"
|
. "$(dirname "$0")/../build_tools_util.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user