Skip to content

Commit

Permalink
Pyinstaller fix (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasgriffin authored Jan 1, 2025
1 parent 2ae9f01 commit a6709b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
5 changes: 3 additions & 2 deletions bitcoin_safe/dynamic_lib_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ def setup_libsecp256k1() -> None:
msg = translate(
"dynamic_lib_load", "libsecp256k1 could not be found. Please install libsecp256k1 in your OS."
)
logger.info(msg)
show_warning_before_failiure(msg)
logger.warning(msg)
# cannot show a gui message here, because otherwise
# pyinstaller (which goes through all module inits) halts


def ensure_pyzbar_works() -> None:
Expand Down
3 changes: 1 addition & 2 deletions tools/build-mac/make_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ brew install autoconf automake libtool gettext coreutils pkgconfig

info "Building PyInstaller."
PYINSTALLER_REPO="https://github.com/pyinstaller/pyinstaller.git"
PYINSTALLER_COMMIT="5d7a0449ecea400eccbbb30d5fcef27d72f8f75d"
# ^ tag "v6.6.0"
PYINSTALLER_COMMIT="1318b8bc26d348147c4e99c0a7b60052a27eb1cc" # ^ tag "v6.11.1"
(
if [ -f "$CACHEDIR/pyinstaller/PyInstaller/bootloader/Darwin-64bit/runw" ]; then
info "pyinstaller already built, skipping"
Expand Down
3 changes: 1 addition & 2 deletions tools/build-wine/prepare-wine.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/bash

PYINSTALLER_REPO="https://github.com/pyinstaller/pyinstaller.git"
PYINSTALLER_COMMIT="5d7a0449ecea400eccbbb30d5fcef27d72f8f75d"
# ^ tag "v6.6.0"
PYINSTALLER_COMMIT="1318b8bc26d348147c4e99c0a7b60052a27eb1cc" # ^ tag "v6.11.1"

PYTHON_VERSION=3.10.4
WINE_PIP_CACHE_DIR=$(win_path "$PIP_CACHE_DIR")
Expand Down
7 changes: 0 additions & 7 deletions tools/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,6 @@ def main() -> None:
from bitcoin_safe import __version__

git_tag: Optional[str] = get_git_tag()
if git_tag == __version__ and (
get_input_with_default(
f"The tag {git_tag} exists already. Do you want to continue? (y/n): ", "n"
).lower()
!= "y"
):
return

if get_input_with_default(f"Is this version {__version__} correct? (y/n): ", "y").lower() != "y":
return
Expand Down

0 comments on commit a6709b5

Please sign in to comment.