Skip to content

Commit

Permalink
Update to Python 3.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
keithel-qt authored and langlor-autodesk committed Feb 6, 2023
1 parent 7cccc72 commit cba1303
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions autodesk-maya-scripts/adsk_maya_build_pyside2_lnx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ PYTHONVERSION_AB=${PYTHONVERSION_A}${PYTHONVERSION_B}
PYTHONVERSION_AdotB=${PYTHONVERSION_A}.${PYTHONVERSION_B}

# Validate that the Python version given is within the accepted values
if [[ ! "$PYTHONVERSION" =~ (2\.7\.1[0-9]|3\.9\.5|3\.9\.7) ]]; then
# We expect the python version to be 2.7.10+, 3.9.5 or 3.9.7 right now. It
# will change in the future, and at that time this check should be updated
# to reflect the newly supported python versions.
echo >&2 "Expecting Python 2.7.1?, 3.9.5 or 3.9.7. aborting."
if [[ ! "$PYTHONVERSION" =~ (2\.7\.1[0-9]|3\.9\.5|3\.9\.7|3\.10\.[0-9]*) ]]; then
# We expect the python version to be 2.7.10+, 3.9.5, 3.9.7, or 3.10.x
# right now. It will change in the future, and at that time this
# check should be updated to reflect the newly supported python
# versions.
echo >&2 "Expecting Python 2.7.1?, 3.9.5, 3.9.7, or 3.10.x. aborting."
echo >&2 "Example: export PYTHONVERSION=3.9.7"
exit 1
fi
Expand Down
11 changes: 6 additions & 5 deletions autodesk-maya-scripts/adsk_maya_package_pyside2_lnx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ PYTHONVERSION_AB=${PYTHONVERSION_A}${PYTHONVERSION_B}
PYTHONVERSION_AdotB=${PYTHONVERSION_A}.${PYTHONVERSION_B}

# Validate that the Python version given is within the accepted values
if [[ ! "$PYTHONVERSION" =~ (2\.7\.1[0-9]|3\.9\.5|3\.9\.7) ]]; then
# We expect the python version to be 2.7.10+, 3.9.5 or 3.9.7 right now. It
# will change in the future, and at that time this check should be updated
# to reflect the newly supported python versions.
echo >&2 "Expecting Python 2.7.1?, 3.9.5 or 3.9.7. aborting."
if [[ ! "$PYTHONVERSION" =~ (2\.7\.1[0-9]|3\.9\.5|3\.9\.7|3\.10\.[0-9]*) ]]; then
# We expect the python version to be 2.7.10+, 3.9.5, 3.9.7, or 3.10.x
# right now. It will change in the future, and at that time this
# check should be updated to reflect the newly supported python
# versions.
echo >&2 "Expecting Python 2.7.1?, 3.9.5, 3.9.7, or 3.10.x. aborting."
echo >&2 "Example: export PYTHONVERSION=3.9.7"
exit 1
fi
Expand Down

0 comments on commit cba1303

Please sign in to comment.