File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : Build Python package
2
- run-name : Generate Python ${{ inputs.VERSION || '3.11.0 ' }}
2
+ run-name : Generate Python ${{ inputs.VERSION || '3.12.3 ' }}
3
3
on :
4
4
workflow_dispatch :
5
5
inputs :
6
6
VERSION :
7
7
description : ' Python version to build and upload'
8
- default : ' 3.11.0 '
8
+ default : ' 3.12.3 '
9
9
required : true
10
10
PUBLISH_RELEASES :
11
11
description : ' Whether to publish releases'
25
25
- ' main'
26
26
27
27
env :
28
- VERSION : ${{ inputs.VERSION || '3.11.0 ' }}
28
+ VERSION : ${{ inputs.VERSION || '3.12.3 ' }}
29
29
defaults :
30
30
run :
31
31
shell : pwsh
67
67
include : ${{ fromJson(needs.generate_matrix.outputs.matrix) }}
68
68
runs-on : ${{ matrix.os }}
69
69
env :
70
- ARTIFACT_NAME : python-${{ inputs.VERSION || '3.11.0 ' }}-${{ matrix.platform }}-${{ matrix.arch }}
70
+ ARTIFACT_NAME : python-${{ inputs.VERSION || '3.12.3 ' }}-${{ matrix.platform }}-${{ matrix.arch }}
71
71
steps :
72
72
73
73
- name : Check out repository code
94
94
include : ${{ fromJson(needs.generate_matrix.outputs.matrix) }}
95
95
runs-on : ${{ matrix.os }}
96
96
env :
97
- ARTIFACT_NAME : python-${{ inputs.VERSION || '3.11.0 ' }}-${{ matrix.platform }}-${{ matrix.arch }}
97
+ ARTIFACT_NAME : python-${{ inputs.VERSION || '3.12.3 ' }}-${{ matrix.platform }}-${{ matrix.arch }}
98
98
steps :
99
99
100
100
- name : Check out repository code
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ chmod +x ../python $PYTHON_MAJOR $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJOR_MINOR pyt
71
71
echo " Upgrading pip..."
72
72
export PIP_ROOT_USER_ACTION=ignore
73
73
./python -m ensurepip
74
- ./python -m pip install --upgrade pip --disable-pip-version-check --no-warn-script-location
74
+ ./python -m pip install --upgrade --force-reinstall pip --disable-pip-version-check --no-warn-script-location
75
75
76
76
echo " Install OpenSSL certificates"
77
77
sh -e " ${PYTHON_APPLICATION_PATH} /Install Certificates.command"
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ chmod +x ../python $PYTHON_MAJOR $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJORMINOR pyth
51
51
echo " Upgrading pip..."
52
52
export PIP_ROOT_USER_ACTION=ignore
53
53
./python -m ensurepip
54
- ./python -m pip install --upgrade pip --disable-pip-version-check --no-warn-script-location
54
+ ./python -m pip install --upgrade --force-reinstall pip --disable-pip-version-check --no-warn-script-location
55
55
56
56
echo " Create complete file"
57
57
touch $PYTHON_TOOLCACHE_VERSION_PATH /x64.complete
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ if ($MajorVersion -ne "2") {
135
135
Write-Host " Install and upgrade Pip"
136
136
$Env: PIP_ROOT_USER_ACTION = " ignore"
137
137
$PythonExePath = Join-Path - Path $PythonArchPath - ChildPath " python.exe"
138
- cmd.exe / c " $PythonExePath -m ensurepip && $PythonExePath -m pip install --upgrade pip --no-warn-script-location"
138
+ cmd.exe / c " $PythonExePath -m ensurepip && $PythonExePath -m pip install --upgrade --force-reinstall pip --no-warn-script-location"
139
139
if ($LASTEXITCODE -ne 0 ) {
140
140
Throw " Error happened during pip installation / upgrade"
141
141
}
You can’t perform that action at this time.
0 commit comments