mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
1. Add python 3.13 to our python packaging pipelines 2. Because numpy 2.0.0 doesn't support thread free python, this PR also upgrades numpy to the latest 3. Delete some unused files.
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
# sets Python manylinux variables
|
|
# the Python version is specified with the PythonVersion variable
|
|
|
|
steps:
|
|
- task: PythonScript@0
|
|
displayName: 'Set Python manylinux variables'
|
|
inputs:
|
|
pythonInterpreter: /usr/bin/python3
|
|
scriptSource: inline
|
|
script: |
|
|
version = "$(PythonVersion)"
|
|
|
|
|
|
if version == "3.7":
|
|
variables = {
|
|
"PythonManylinuxDir": "/opt/python/cp37-cp37m"
|
|
}
|
|
elif version == "3.8":
|
|
variables = {
|
|
"PythonManylinuxDir": "/opt/python/cp38-cp38"
|
|
}
|
|
elif version == "3.9":
|
|
variables = {
|
|
"PythonManylinuxDir": "/opt/python/cp39-cp39"
|
|
}
|
|
elif version == "3.10":
|
|
variables = {
|
|
"PythonManylinuxDir": "/opt/python/cp310-cp310"
|
|
}
|
|
elif version == "3.11":
|
|
variables = {
|
|
"PythonManylinuxDir": "/opt/python/cp311-cp311"
|
|
}
|
|
elif version == "3.12":
|
|
variables = {
|
|
"PythonManylinuxDir": "/opt/python/cp312-cp312"
|
|
}
|
|
elif version == "3.13":
|
|
variables = {
|
|
"PythonManylinuxDir": "/opt/python/cp313-cp313"
|
|
}
|
|
else:
|
|
raise ValueError("Unsupported Python version: '{}'".format(version))
|
|
|
|
for name, value in variables.items():
|
|
print("Setting variable: {} = '{}'".format(name, value))
|
|
print("##vso[task.setvariable variable={}]{}".format(name, value))
|