Skip to content

Commit

Permalink
mac build: don't create __pycache__ folders
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SomberNight committed Jul 12, 2021
1 parent 8945dcd commit 659c00e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/build-wine/build-electrum-git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

NAME_ROOT=electrum

export PYTHONDONTWRITEBYTECODE=1
export PYTHONDONTWRITEBYTECODE=1 # don't create __pycache__/ folders with .pyc files


# Let's begin!
Expand Down
1 change: 1 addition & 0 deletions contrib/osx/make_osx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 659c00e

Please sign in to comment.