Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
Toporin committed Sep 29, 2021
1 parent 1bfe0fe commit 149e4a4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 20 deletions.
2 changes: 1 addition & 1 deletion contrib/build-linux/appimage/make_appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ tar xf "$CACHEDIR/Python-$PYTHON_VERSION.tar.xz" -C "$BUILDDIR"
# Patch taken from Ubuntu http://archive.ubuntu.com/ubuntu/pool/main/p/python3.9/python3.9_3.9.5-3~21.04.debian.tar.xz
patch -p1 < "$CONTRIB_APPIMAGE/patches/python-3.9-reproducible-buildinfo.diff"
./configure \
--cache-file="$CACHEDIR/python.config.cache" \
--prefix="$APPDIR/usr" \
--enable-ipv6 \
--enable-shared \
-q
# --cache-file="$CACHEDIR/python.config.cache" \ # error
make -j4 -s || fail "Could not build Python"
make -s install > /dev/null || fail "Could not install Python"
# When building in docker on macOS, python builds with .exe extension because the
Expand Down
2 changes: 1 addition & 1 deletion contrib/build-wine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ RUN wget -nc https://dl.winehq.org/wine-builds/Release.key && \
&& \
rm -rf /var/lib/apt/lists/* && \
apt-get autoremove -y && \
apt-get clean
apt-get clean
14 changes: 0 additions & 14 deletions contrib/build-wine/prepare-wine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ PYINSTALLER_REPO="https://github.com/SomberNight/pyinstaller.git"
PYINSTALLER_COMMIT="80ee4d613ecf75a1226b960a560ee01459e65ddb"
# ^ tag 4.2, plus a custom commit that fixes cross-compilation with MinGW

# pyscard prebuilt binaries for Satochip
# PYSCARD_FILENAME=pyscard-1.9.9-cp36-cp36m-win32.whl # python 3.6, 32-bit
# PYSCARD_URL=https://github.com/cculianu/Electron-Cash-Build-Tools/releases/download/v1.0/pyscard-1.9.9-cp36-cp36m-win32.whl
# PYSCARD_SHA256=99d2b450f322f9ed9682fd2a99d95ce781527e371006cded38327efca8158fe7
# PYSCARD_FILENAME=pyscard-1.9.9-cp37-cp37m-win32.whl # python 3.7, 32-bit
# PYSCARD_URL=https://ci.appveyor.com/api/buildjobs/f9cmce4j8hkau9n4/artifacts/dist/pyscard-1.9.9-cp37-cp37m-win32.whl
# PYSCARD_SHA256=3f7d52dd6694dd369b02e797fe1a3e39b63cf1d1c4b5fc0e1341aafa24f87e7a

PYTHON_VERSION=3.8.8


Expand Down Expand Up @@ -62,12 +54,6 @@ info "Installing build dependencies."
$WINE_PYTHON -m pip install --no-dependencies --no-warn-script-location \
--cache-dir "$WINE_PIP_CACHE_DIR" -r "$CONTRIB"/deterministic-build/requirements-build-wine.txt


#Satochip install pyscard
# info "Installing pyscard..."
# download_if_not_exist $PYSCARD_FILENAME "$PYSCARD_URL"
# verify_hash $PYSCARD_FILENAME "$PYSCARD_SHA256"
# $PYTHON -m pip install "$CACHEDIR/$PYSCARD_FILENAME"
info "Installing NSIS."
download_if_not_exist "$CACHEDIR/$NSIS_FILENAME" "$NSIS_URL"
verify_hash "$CACHEDIR/$NSIS_FILENAME" "$NSIS_SHA256"
Expand Down
5 changes: 1 addition & 4 deletions electrum/plugins/hw_wallet/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,7 @@ def error_dialog(self, msg, blocking):

def clear_dialog(self):
if self.dialog:
try:
self.dialog.accept()
except RuntimeError:
pass #see https://github.com/Electron-Cash/Electron-Cash/issues/1437
self.dialog.accept()
self.dialog = None

def win_query_choice(self, msg, labels):
Expand Down

0 comments on commit 149e4a4

Please sign in to comment.