Skip to content

Commit e5259f3

Browse files
authored
Win bdistwheel part2 (#490)
* Win bdistwheel part2
1 parent e02bd94 commit e5259f3

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

scripts/azure-pipelines.yml

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -132,32 +132,40 @@ jobs:
132132

133133
- job: bdist_wheel_dpnp_local_win
134134
displayName: bdist_wheel_dpnp_local_win
135+
timeoutInMinutes: 120
135136
pool:
136137
vmImage: 'windows-2019' # 'vs2017-win2016'
137138
steps:
139+
- script: set PYTHONUNBUFFERED=1
140+
displayName: make output unbuffered
141+
142+
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
143+
displayName: Add conda to PATH
144+
138145
- script: |
139146
call scripts\install_system_deps_win.bat
140-
call scripts\install_cmake_win.bat
147+
displayName: Install Intel ONE API
148+
timeoutInMinutes: 60
149+
150+
- script: |
151+
call activate
152+
conda install -y conda-build numpy cython pytest hypothesis
153+
displayName: Install extra conda packages
141154
155+
- script: |
156+
call activate
157+
call scripts\install_cmake_win.bat
142158
echo ========================= Intel OneAPI setvars ===============================
143-
# call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 vs2019
144159
set "ONEAPI_ROOT=C:\Program Files (x86)\Intel\oneAPI\"
145-
146-
echo =================== conda install conda-build ===========================
147-
:: call scripts\install_python_deps.sh
148-
conda install -y conda-build -c "%ONEAPI_ROOT%\conda_channel"
149-
150-
call scripts\build_deps_dpctl_win.bat
151-
echo =================== build DPNP bdist_wheel package ===========================
152-
:: cmake -G Ninja ..
153-
:: cmake --build . --target install -- -v
154-
:: python setup.py build_clib
155-
:: python setup.py build_ext --inplace
160+
call "%ONEAPI_ROOT%\compiler\latest\env\vars.bat"
161+
call "%ONEAPI_ROOT%\dpl\latest\env\vars.bat"
162+
call "%ONEAPI_ROOT%\tbb\latest\env\vars.bat"
163+
echo =================== build DPNP wheel package ===========================
156164
python setup.py bdist_wheel
157-
dir
158-
:: - publish: dist
159-
:: artifact: 'package_$(Agent.JobName)_$(Agent.OS)'
160-
:: displayName: bdist_wheel_local_win
165+
displayName: build_bdist_wheel
166+
- publish: dist
167+
artifact: 'package_$(Agent.JobName)_$(Agent.OS)'
168+
displayName: bdist_wheel_local_win_package
161169

162170
# test python ./setup.py bdist_wheel command with dpctl
163171
- job: wheel_dpnp_dpctl_lin

scripts/install_system_deps_win.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,5 @@ webimage_extracted\bootstrapper.exe -s --action install ^
9292

9393
echo ========================= copy OpenCL ====================================
9494
dir "C:\Program Files (x86)\Intel\oneAPI\intelpython\python3.7\Library"
95-
copy "C:\Program Files (x86)\Intel\oneAPI\intelpython\python3.7\Library\OpenCL.dll" C:\Windows\System32\
95+
copy /Y "C:\Program Files (x86)\Intel\oneAPI\intelpython\python3.7\Library\OpenCL.dll" C:\Windows\System32\
96+
echo ========================= end install_system_deps_win.bat ====================================

0 commit comments

Comments
 (0)