mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
Wine Build: Make it less noisy
This suppresses the pip script location warnings, like we already do for AppImage. It also disables the Wine debugging messages by setting WINEDEBUG=-all. ----- taken from Electron-Cash/Electron-Cash@d3685b038e
This commit is contained in:
parent
0d1a473bb0
commit
dcecf7db4b
2 changed files with 7 additions and 6 deletions
|
@ -4,6 +4,7 @@ NAME_ROOT=electrum
|
||||||
|
|
||||||
# These settings probably don't need any change
|
# These settings probably don't need any change
|
||||||
export WINEPREFIX=/opt/wine64
|
export WINEPREFIX=/opt/wine64
|
||||||
|
export WINEDEBUG=-all
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
export PYTHONHASHSEED=22
|
export PYTHONHASHSEED=22
|
||||||
|
|
||||||
|
@ -42,14 +43,14 @@ popd
|
||||||
|
|
||||||
|
|
||||||
# Install frozen dependencies
|
# Install frozen dependencies
|
||||||
$PYTHON -m pip install -r "$CONTRIB"/deterministic-build/requirements.txt
|
$PYTHON -m pip install --no-warn-script-location -r "$CONTRIB"/deterministic-build/requirements.txt
|
||||||
|
|
||||||
$PYTHON -m pip install -r "$CONTRIB"/deterministic-build/requirements-hw.txt
|
$PYTHON -m pip install --no-warn-script-location -r "$CONTRIB"/deterministic-build/requirements-hw.txt
|
||||||
|
|
||||||
pushd $WINEPREFIX/drive_c/electrum
|
pushd $WINEPREFIX/drive_c/electrum
|
||||||
# see https://github.com/pypa/pip/issues/2195 -- pip makes a copy of the entire directory
|
# see https://github.com/pypa/pip/issues/2195 -- pip makes a copy of the entire directory
|
||||||
info "Pip installing Electrum. This might take a long time if the project folder is large."
|
info "Pip installing Electrum. This might take a long time if the project folder is large."
|
||||||
$PYTHON -m pip install .
|
$PYTHON -m pip install --no-warn-script-location .
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ PYTHON_VERSION=3.6.8
|
||||||
|
|
||||||
## These settings probably don't need change
|
## These settings probably don't need change
|
||||||
export WINEPREFIX=/opt/wine64
|
export WINEPREFIX=/opt/wine64
|
||||||
#export WINEARCH='win32'
|
export WINEDEBUG=-all
|
||||||
|
|
||||||
PYTHON_FOLDER="python3"
|
PYTHON_FOLDER="python3"
|
||||||
PYHOME="c:/$PYTHON_FOLDER"
|
PYHOME="c:/$PYTHON_FOLDER"
|
||||||
|
@ -58,7 +58,7 @@ done
|
||||||
|
|
||||||
info "Installing dependencies specific to binaries."
|
info "Installing dependencies specific to binaries."
|
||||||
# note that this also installs pinned versions of both pip and setuptools
|
# note that this also installs pinned versions of both pip and setuptools
|
||||||
$PYTHON -m pip install -r "$CONTRIB"/deterministic-build/requirements-binaries.txt
|
$PYTHON -m pip install --no-warn-script-location -r "$CONTRIB"/deterministic-build/requirements-binaries.txt
|
||||||
|
|
||||||
info "Installing ZBar."
|
info "Installing ZBar."
|
||||||
download_if_not_exist "$CACHEDIR/$ZBAR_FILENAME" "$ZBAR_URL"
|
download_if_not_exist "$CACHEDIR/$ZBAR_FILENAME" "$ZBAR_URL"
|
||||||
|
@ -107,6 +107,6 @@ info "Building PyInstaller."
|
||||||
[[ -e PyInstaller/bootloader/Windows-32bit/runw.exe ]] || fail "Could not find runw.exe in target dir!"
|
[[ -e PyInstaller/bootloader/Windows-32bit/runw.exe ]] || fail "Could not find runw.exe in target dir!"
|
||||||
) || fail "PyInstaller build failed"
|
) || fail "PyInstaller build failed"
|
||||||
info "Installing PyInstaller."
|
info "Installing PyInstaller."
|
||||||
$PYTHON -m pip install ./pyinstaller
|
$PYTHON -m pip install --no-warn-script-location ./pyinstaller
|
||||||
|
|
||||||
info "Wine is configured."
|
info "Wine is configured."
|
||||||
|
|
Loading…
Add table
Reference in a new issue