Browse Source

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.
patch-4
SomberNight 4 years ago
parent
commit
659c00e06b
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      contrib/build-wine/build-electrum-git.sh
  2. 1
      contrib/osx/make_osx

2
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!

1
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"

Loading…
Cancel
Save