File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ echo Build complete. Returning to Batch.
66
66
:: Rewrite the name of the project to scipy-openblas32
67
67
echo Rewrite to scipy_openblas32
68
68
cd ../..
69
- powershell -Command " (Get-Content 'pyproject.toml') -replace 'openblas64', 'openblas32' | Set-Content 'pyproject.toml'"
69
+ set out_pyproject = pyproject_64_32.toml
70
+ powershell -Command " (Get-Content 'pyproject.toml') -replace 'openblas64', 'openblas32' | Set-Content %out_pyproject%
70
71
powershell -Command " (Get-Content 'local\scipy_openblas32\__main__.py') -replace 'openblas64', 'openblas32' | Out-File 'local\scipy_openblas32\__main__.py' -Encoding utf8"
71
72
powershell -Command " (Get-Content 'local\scipy_openblas32\__init__.py') -replace 'openblas64', 'openblas32' | Out-File 'local\scipy_openblas32\__init__.py' -Encoding utf8"
72
73
powershell -Command " (Get-Content 'local\scipy_openblas32\__init__.py') -replace 'openblas_get_config64_', 'openblas_get_config' | Out-File 'local\scipy_openblas32\__init__.py' -Encoding utf8"
@@ -113,9 +114,12 @@ cd ../..
113
114
:: Build the Wheel & Install It
114
115
echo Running 'python -m build' to build the wheel...
115
116
python -c " import build" 2 > NUL || pip install build
117
+ move /Y pyproject.toml pyproject.toml.bak
118
+ move /Y %out_pyproject% pyproject.toml
116
119
python -m build
117
120
if errorlevel 1 exit /b 1
118
-
121
+ move /Y pyproject.toml.bak pyproject.toml
122
+
119
123
:: Locate the built wheel
120
124
for /f %%f in ('dir /b dist\scipy_openblas*.whl 2^ > nul ') do set WHEEL_FILE = dist\%%f
121
125
You can’t perform that action at this time.
0 commit comments