More python verison updates.

This commit is contained in:
Kārlis Seņko 2020-12-12 13:17:52 +02:00 committed by karlis
parent 3e22aaaac7
commit 387cbd0d17
3 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ if ! [[ $# -eq 3 ]]; then
exit 1 exit 1
fi fi
python_version=python3.6 python_version=python3.9
py_framework=$1 py_framework=$1
appbundle=$2 appbundle=$2
@ -22,7 +22,7 @@ install_name_tool -change `otool -L "$executable" | sed -n "s/^[[:blank:]]*\([^[
echo "Cleaning up embedded Python Framework" echo "Cleaning up embedded Python Framework"
cd "$appbundle/Contents/Frameworks/Python.framework" || exit 1 cd "$appbundle/Contents/Frameworks/Python.framework" || exit 1
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf || exit 1 find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf || exit 1
rm -r Versions/Current/Resources/* Versions/Current/lib/python3.6/test Versions/Current/lib/python3.6/idlelib Versions/Current/lib/python3.6/curses Versions/Current/lib/python3.6/lib2to3 || exit 1 rm -r Versions/Current/Resources/* Versions/Current/lib/$python_version/test Versions/Current/lib/$python_version/idlelib Versions/Current/lib/$python_version/curses Versions/Current/lib/$python_version/lib2to3 || exit 1
echo "Checking if PySide2 is available" echo "Checking if PySide2 is available"

View File

@ -5,7 +5,7 @@ if ! [[ $# -eq 1 ]]; then
exit 1 exit 1
fi fi
python_version=python3.6 python_version=python3.9
python_prefix=$(pkg-config --variable=prefix python3) python_prefix=$(pkg-config --variable=prefix python3)
appdir=$1 appdir=$1

View File

@ -4,12 +4,12 @@ SCRIPTPATH=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
mkdir python && cd python mkdir python && cd python
wget "https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz" || exit 1 wget "https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tar.xz" || exit 1
tar -xf Python-3.6.4.tar.xz || exit 1 tar -xf Python-3.9.1.tar.xz || exit 1
export PYTHON_FRAMEWORK_DIR="`pwd`/framework" export PYTHON_FRAMEWORK_DIR="`pwd`/framework"
cd Python-3.6.4 || exit 1 cd Python-3.9.1 || exit 1
CPPFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" ./configure --enable-framework=$PYTHON_FRAMEWORK_DIR || exit 1 CPPFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" ./configure --enable-framework=$PYTHON_FRAMEWORK_DIR || exit 1