@@ -17,8 +17,8 @@ set "DPBENCH_SYCL=1"
1717set " CMAKE_GENERATOR = Ninja"
1818set " CC = icx"
1919set " CXX = icx"
20-
21- " %PYTHON% " setup.py clean --all
20+ :: Make CMake verbose
21+ set " VERBOSE = 1 "
2222
2323FOR %%V IN (14.0.0 14 15.0.0 15 16.0.0 16 17.0.0 17) DO @ (
2424 REM set DIR_HINT if directory exists
@@ -41,18 +41,26 @@ if EXIST "%PLATFORM_DIR%" (
4141 if errorlevel 1 exit 1
4242)
4343
44- @ REM TODO: switch to pip build. Currently results in broken binary
45- @ REM %PYTHON% -m pip install --no-index --no-deps --no-build-isolation . -v
44+ %PYTHON% -m build -w -n -x
45+ if %ERRORLEVEL% neq 0 exit 1
46+
47+ :: `pip install dist\numpy*.whl` does not work on windows,
48+ :: so use a loop; there's only one wheel in dist/ anyway
49+ for /f %%f in ('dir /b /S .\dist') do (
50+ %PYTHON% -m wheel tags --remove --build %GIT_DESCRIBE_NUMBER% %%f
51+ if %ERRORLEVEL% neq 0 exit 1
52+ )
53+
54+ :: wheel file was renamed
55+ for /f %%f in ('dir /b /S .\dist') do (
56+ %PYTHON% -m pip install %%f
57+ if %ERRORLEVEL% neq 0 exit 1
58+ )
59+
60+ :: Copy wheel package
4661if NOT " %WHEELS_OUTPUT_FOLDER% " == " " (
47- rem Install and assemble wheel package from the build bits
48- " %PYTHON% " setup.py install --single-version-externally-managed --record=record.txt bdist_wheel --build-number %GIT_DESCRIBE_NUMBER%
49- if errorlevel 1 exit 1
5062 copy dist\dpbench*.whl %WHEELS_OUTPUT_FOLDER%
5163 if errorlevel 1 exit 1
52- ) ELSE (
53- rem Only install
54- " %PYTHON% " setup.py install --single-version-externally-managed --record=record.txt
55- if errorlevel 1 exit 1
5664)
5765
5866rem copy back
0 commit comments