Skip to content

Commit

Permalink
add major version env_var
Browse files Browse the repository at this point in the history
  • Loading branch information
erikng committed Feb 1, 2024
1 parent 942ef72 commit 4139760
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build_python_3.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env:
DEV_APPLICATION_ID: "Developer ID Application: Mac Admins Open Source (T4SK8ZXCXG)"
NOTARY_PASS: ${{ secrets.NOTARY_PASS }}
PYTHON_VERSION: "3.10.11"
PYTHON_MAJOR_VERSION: "3.10"

on:
workflow_dispatch:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_python_3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env:
DEV_APPLICATION_ID: "Developer ID Application: Mac Admins Open Source (T4SK8ZXCXG)"
NOTARY_PASS: ${{ secrets.NOTARY_PASS }}
PYTHON_VERSION: "3.11.7"
PYTHON_MAJOR_VERSION: "3.11"

on:
workflow_dispatch:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_python_3.12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env:
DEV_APPLICATION_ID: "Developer ID Application: Mac Admins Open Source (T4SK8ZXCXG)"
NOTARY_PASS: ${{ secrets.NOTARY_PASS }}
PYTHON_VERSION: "3.12.1"
PYTHON_MAJOR_VERSION: "3.12"

on:
workflow_dispatch:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_python_3.9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env:
DEV_APPLICATION_ID: "Developer ID Application: Mac Admins Open Source (T4SK8ZXCXG)"
NOTARY_PASS: ${{ secrets.NOTARY_PASS }}
PYTHON_VERSION: "3.9.13"
PYTHON_MAJOR_VERSION: "3.9"

on:
workflow_dispatch:
Expand Down
9 changes: 8 additions & 1 deletion build_python_framework_pkgs.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RP_BINDIR="/tmp/relocatable-python"
MP_BINDIR="/tmp/munki-pkg"
CONSOLEUSER=$(/usr/bin/stat -f "%Su" /dev/console)
PIPCACHEDIR="/Users/${CONSOLEUSER}/Library/Caches/pip"
XCODE_PATH="/Applications/Xcode_14.1.app"
XCODE_PATH="/Applications/Xcode_15.2.app"
XCODE_NOTARY_PATH="$XCODE_PATH/Contents/Developer/usr/bin/notarytool"
XCODE_STAPLER_PATH="$XCODE_PATH/Contents/Developer/usr/bin/stapler"
NEWSUBBUILD=$((80620 + $(/usr/bin/git rev-parse HEAD~0 | xargs -I{} /usr/bin/git rev-list --count {})))
Expand Down Expand Up @@ -56,6 +56,13 @@ if [ -n "$4" ]; then
PYTHON_VERSION=$4
else
PYTHON_VERSION=3.11.1
PYTHON_VERSION=3.12.1
fi

if [ -n "$5" ]; then
PYTHON_MAJOR_VERSION=$5
else
PYTHON_MAJOR_VERSION=3.12
fi
# Set python bin version based on PYTHON_VERSION
PYTHON_BIN_VERSION="${PYTHON_VERSION%.*}"
Expand Down

0 comments on commit 4139760

Please sign in to comment.