Skip to content

Commit dd4ebc5

Browse files
authored
Update python scripts in the debpkg build to use python3 (#13708)
1 parent 11f0a1b commit dd4ebc5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Microsoft.DotNet.Build.Tasks.Installers/build/deb-package-tool/package_tool.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ validate_inputs(){
119119
}
120120

121121
parse_config_and_set_env_vars(){
122-
extract_base_cmd="python $SCRIPT_DIR/scripts/extract_json_value.py"
122+
extract_base_cmd="python3 $SCRIPT_DIR/scripts/extract_json_value.py"
123123

124124
# Arguments Take Precedence over Config
125125
[ -z "$PACKAGE_VERSION" ] && PACKAGE_VERSION="$($extract_base_cmd $CONFIG "release.package_version")"
@@ -218,15 +218,15 @@ package_install_scripts(){
218218

219219
## Generation Functions ##
220220
generate_config_templates(){
221-
python ${SCRIPT_DIR}/scripts/config_template_generator.py $CONFIG $SCRIPT_DIR/templates/debian $DEBIAN_DIR $PACKAGE_NAME $PACKAGE_VERSION
221+
python3 ${SCRIPT_DIR}/scripts/config_template_generator.py $CONFIG $SCRIPT_DIR/templates/debian $DEBIAN_DIR $PACKAGE_NAME $PACKAGE_VERSION
222222
}
223223

224224
generate_manpages(){
225225
if [[ -f "$DOCS_JSON_PATH" ]]; then
226226
mkdir -p $DOCS_DIR
227227

228228
# Generate the manpages from json spec
229-
python ${SCRIPT_DIR}/scripts/manpage_generator.py ${DOCS_JSON_PATH} ${DOCS_DIR}
229+
python3 ${SCRIPT_DIR}/scripts/manpage_generator.py ${DOCS_JSON_PATH} ${DOCS_DIR}
230230
fi
231231
}
232232

src/Microsoft.DotNet.Build.Tasks.Installers/build/deb-package-tool/scripts/config_template_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/python3
22
#
33
# Licensed to the .NET Foundation under one or more agreements.
44
# The .NET Foundation licenses this file to you under the MIT license.

src/Microsoft.DotNet.Build.Tasks.Installers/build/deb-package-tool/scripts/extract_json_value.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/python3
22
#
33
# Licensed to the .NET Foundation under one or more agreements.
44
# The .NET Foundation licenses this file to you under the MIT license.

src/Microsoft.DotNet.Build.Tasks.Installers/build/deb-package-tool/scripts/manpage_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/python3
22
#
33
# Licensed to the .NET Foundation under one or more agreements.
44
# The .NET Foundation licenses this file to you under the MIT license.

0 commit comments

Comments
 (0)