File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,7 +212,9 @@ jobs:
212212 call "%ONEAPI_ROOT%\dpl\latest\env\vars.bat"
213213 call "%ONEAPI_ROOT%\tbb\latest\env\vars.bat"
214214 echo =================== conda build DPNP ===========================
215- call conda build conda-recipe -c intel
215+ call conda list
216+ call python --version
217+ call conda build conda-recipe -c local -c intel
216218 mkdir dist
217219 echo ========== it doesn't work yet =========================
218220 displayName: build_conda
Original file line number Diff line number Diff line change @@ -4,16 +4,29 @@ rem git tag 0.5.0rc2
44
55echo +++++++++++++++++++++++++ Python version +++++++++++++++++++++++++++
66call python --version
7+
8+ rem need to keep package file exists because it will be used as a channel for conda build later
9+ set DPCTL_DIST = %CD% \dist_dpctl
10+
11+ call conda uninstall -y dpctl
12+
713echo +++++++++++++++++++++++++ Downlowd DPCTL +++++++++++++++++++++++++++
814call git clone https://github.com/IntelPython/dpctl.git
915cd dpctl
1016
1117set " ONEAPI_ROOT = C:\Program Files (x86)\Intel\oneAPI\"
1218echo +++++++++++++++++++++++++ Build DPCTL +++++++++++++++++++++++++++
13- call conda build --croot=C:/tmp conda-recipe --no-test -c " %ONEAPI_ROOT% \conda_channel"
19+ call conda build --croot=C:/tmp conda-recipe --no-test -c " %ONEAPI_ROOT% \conda_channel" --output-folder %DPCTL_DIST%
20+
21+ echo +++++++++++++++++++++++++ get DPCTL package name +++++++++++++++++++++++++++
22+ rem this garbage here is because
23+ rem I didn't find a method how to get path and filename for the package built by conda build
24+ FOR /F " tokens=* USEBACKQ" %%F IN (`dir /B %DPCTL_DIST% \win-64\dpctl*.bz2`) DO SET DPCTL_PACKAGE_NAME = %%F
25+ echo %DPCTL_DIST%
26+ echo %DPCTL_PACKAGE_NAME%
1427
1528echo +++++++++++++++++++++++++ install DPCTL +++++++++++++++++++++++++++
16- call conda install -y dpctl --strict-channel-priority -c local -c intel
29+ call conda install -y %DPCTL_DIST% /win-64/ %DPCTL_PACKAGE_NAME%
1730
1831cd ..
1932echo +++++++++++++++++++++++++ cleanup DPCTL sources +++++++++++++++++++++++++++
You can’t perform that action at this time.
0 commit comments