Skip to content

Commit

Permalink
Bump yet another python version
Browse files Browse the repository at this point in the history
  • Loading branch information
pshenmic committed Dec 18, 2023
1 parent 565aba9 commit ac0e19b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion contrib/build-linux/appimage/apprun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export LD_LIBRARY_PATH="${APPDIR}/usr/lib/:${APPDIR}/usr/lib/x86_64-linux-gnu${L
export PATH="${APPDIR}/usr/bin:${PATH}"
export LDFLAGS="-L${APPDIR}/usr/lib/x86_64-linux-gnu -L${APPDIR}/usr/lib"

exec "${APPDIR}/usr/bin/python3.7" -s "${APPDIR}/usr/bin/electrum-dash" "$@"
exec "${APPDIR}/usr/bin/python3.10" -s "${APPDIR}/usr/bin/electrum-dash" "$@"
8 changes: 4 additions & 4 deletions contrib/build-linux/appimage/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ appdir_python() {
env \
PYTHONNOUSERSITE=1 \
LD_LIBRARY_PATH="$APPDIR/usr/lib:$APPDIR/usr/lib/x86_64-linux-gnu${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}" \
"$APPDIR/usr/bin/python3.7" "$@"
"$APPDIR/usr/bin/python3.10" "$@"
}

python='appdir_python'
Expand Down Expand Up @@ -133,7 +133,7 @@ strip_binaries()
{
chmod u+w -R "$APPDIR"
{
printf '%s\0' "$APPDIR/usr/bin/python3.7"
printf '%s\0' "$APPDIR/usr/bin/python3.10"
find "$APPDIR" -type f -regex '.*\.so\(\.[0-9.]+\)?$' -print0
} | xargs -0 --no-run-if-empty --verbose strip -R .note.gnu.build-id -R .comment
}
Expand All @@ -148,11 +148,11 @@ remove_emptydirs

info "removing some unneeded stuff to decrease binary size."
rm -rf "$APPDIR"/usr/{share,include}
PYDIR="$APPDIR"/usr/lib/python3.7
PYDIR="$APPDIR"/usr/lib/python3.10
rm -rf "$PYDIR"/{test,ensurepip,lib2to3,idlelib,turtledemo}
rm -rf "$PYDIR"/{ctypes,sqlite3,tkinter,unittest}/test
rm -rf "$PYDIR"/distutils/{command,tests}
rm -rf "$PYDIR"/config-3.7m-x86_64-linux-gnu
rm -rf "$PYDIR"/config-3.10m-x86_64-linux-gnu
rm -rf "$PYDIR"/site-packages/{opt,pip,setuptools,wheel}
rm -rf "$PYDIR"/site-packages/Cryptodome/SelfTest
rm -rf "$PYDIR"/site-packages/{psutil,qrcode,websocket}/tests
Expand Down
6 changes: 3 additions & 3 deletions contrib/dash/actions/install-osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ set -ev

export MACOSX_DEPLOYMENT_TARGET=10.13

PYTHON_VERSION=3.7.9
PYTHON_VERSION=3.10.11
PYFTP=https://www.python.org/ftp/python/$PYTHON_VERSION
PYPKG_NAME=python-$PYTHON_VERSION-macosx10.9.pkg
PY_SHA256=bf54a14eef23467991e8c7a88c7307762e484c024a94ec1ee292ac1db3d41fc9
PYPKG_NAME=python-$PYTHON_VERSION-macos11.pkg
PY_SHA256=767ed35ad688d28ea4494081ae96408a0318d0d5bb9ca0139d74d6247b231cfc
echo "$PY_SHA256 $PYPKG_NAME" > $PYPKG_NAME.sha256
curl -O $PYFTP/$PYPKG_NAME
shasum -a256 -s -c $PYPKG_NAME.sha256
Expand Down
1 change: 1 addition & 0 deletions debian/electrum-dash-venv.triggers
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ interest-noawait /usr/bin/python3.6
interest-noawait /usr/bin/python3.7
interest-noawait /usr/bin/python3.8
interest-noawait /usr/bin/python3.9
interest-noawait /usr/bin/python3.10

interest dh-virtualenv-interpreter-update

0 comments on commit ac0e19b

Please sign in to comment.