Skip to content

Commit 2dba026

Browse files
authored
Add back MacOS leg of the Python packaging job (#1523)
* Add MacOS leg of Python packaging job * Update copy files source directory for Mac OS leg * Add a task to display the binaries directories contents after build wheel creation * Revert some changes * Add task to log * Update * Remove unnecessary logs
1 parent 4c75ca8 commit 2dba026

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

tools/ci_build/github/azure-pipelines/azure-pipelines-py-packaging.yml

+42
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,45 @@ jobs:
209209
displayName: 'Component Detection'
210210

211211
- template: templates/clean-agent-build-directory-step.yml
212+
213+
- job: MacOS_py_Wheels
214+
pool:
215+
vmImage: 'macOS-10.13'
216+
strategy:
217+
matrix:
218+
Python35:
219+
python.version: '3.5'
220+
Python36:
221+
python.version: '3.6'
222+
Python37:
223+
python.version: '3.7'
224+
steps:
225+
- task: CondaEnvironment@1
226+
inputs:
227+
createCustomEnvironment: true
228+
environmentName: 'py$(python.version)'
229+
packageSpecs: 'python=$(python.version)'
230+
cleanEnvironment: true
231+
232+
- script: |
233+
sudo python -m pip install numpy==1.15.0
234+
sudo xcode-select --switch /Applications/Xcode_10.app/Contents/Developer
235+
./build.sh --config Release --skip_submodule_sync --parallel --use_openmp --build_wheel
236+
displayName: 'Command Line Script'
237+
238+
- task: CopyFiles@2
239+
displayName: 'Copy Python Wheel to: $(Build.ArtifactStagingDirectory)'
240+
inputs:
241+
SourceFolder: '$(Build.SourcesDirectory)/build/Linux/Release/dist'
242+
Contents: '*.whl'
243+
TargetFolder: '$(Build.ArtifactStagingDirectory)'
244+
245+
- task: PublishBuildArtifacts@1
246+
displayName: 'Publish Artifact: ONNXRuntime python wheel'
247+
inputs:
248+
ArtifactName: onnxruntime
249+
250+
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
251+
displayName: 'Component Detection'
252+
253+
- template: templates/clean-agent-build-directory-step.yml

tools/ci_build/github/linux/docker/scripts/install_manylinux2010.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if [ ! -f /opt/onnxruntime-python/bin/python${PYTHON_VER} ]; then
2626
ln -s python /opt/onnxruntime-python/bin/python${PYTHON_VER}
2727
fi
2828
python -m pip install --upgrade --force-reinstall pip==19.1.1
29-
python -m pip install --upgrade --force-reinstall numpy==1.16.3
29+
python -m pip install --upgrade --force-reinstall numpy==1.15.0
3030
python -m pip install --upgrade --force-reinstall requests==2.21.0
3131
python -m pip install --upgrade --force-reinstall wheel==0.31.1
3232
python -m pip install --upgrade --force-reinstall setuptools==41.0.1

0 commit comments

Comments
 (0)