Skip to content

Commit b398e59

Browse files
committed
whl test
1 parent b1a5acf commit b398e59

File tree

3 files changed

+38
-8
lines changed

3 files changed

+38
-8
lines changed

prj/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
2727
-fomit-frame-pointer -fvectorize -fslp-vectorize -fno-finite-math-only
2828
-fstrict-aliasing -finline-functions)
2929
elseif (MSVC)
30-
set(COMPILE_OPTIONS /O2 /W1 /GL /Ot /Ob3 /fp:fast /arch:AVX2 /Zc:__cplusplus /EHsc- /GR-)
30+
set(COMPILE_OPTIONS /O2 /W1 /GL /Ot /fp:fast /arch:AVX2 /Zc:__cplusplus /GR-)
31+
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
3132
endif ()
3233

3334

prj/build.bat

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@echo off
2+
setlocal enabledelayedexpansion
3+
4+
for %%v in (38 39 310 311 312 313) do (
5+
conda env list | findstr "python%%v" > nul
6+
if errorlevel 1 (
7+
echo Creating python%%v environment...
8+
conda create -n python%%v python=3.%%v -y
9+
)
10+
)
11+
12+
set versions=cp38 cp39 cp310 cp311 cp312 cp313
13+
14+
for %%v in (%versions%) do (
15+
conda activate python%%v && pip install build twine pybind11 numpy setuptools wheel
16+
)
17+
18+
for %%v in (%versions%) do (
19+
conda activate python%%v && python -m build --wheel
20+
)
21+
22+
echo Build process complete.
23+
endlocal

prj/build.sh

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
#!/bin/bash
22

3-
# yum install -y clang llvm
3+
if ! conda env list | grep -q "python38" || ! conda env list | grep -q "python39" || ! conda env list | grep -q "python310" || ! conda env list | grep -q "python311" || ! conda env list | grep -q "python312" || ! conda env list | grep -q "python313"; then
4+
conda create -n python38 python=3.8 -y
5+
conda create -n python39 python=3.9 -y
6+
conda create -n python310 python=3.10 -y
7+
conda create -n python311 python=3.11 -y
8+
conda create -n python312 python=3.12 -y
9+
conda create -n python313 python=3.13 -y
410

5-
6-
versions=(cp313 cp312 cp311 cp310 cp39 cp38)
7-
for version in "${versions[@]}"; do
8-
/opt/python/"${version}"-"${version}"/bin/pip install build scikit-build-core pybind11
9-
done
11+
versions=(cp313 cp312 cp311 cp310 cp39 cp38)
12+
for version in "${versions[@]}"; do
13+
/opt/python/"${version}"-"${version}"/bin/pip install build scikit-build-core pybind11
14+
done
15+
fi
1016

1117
cd /io
12-
18+
versions=(cp313 cp312 cp311 cp310 cp39 cp38)
1319
for version in "${versions[@]}"; do
1420
CC=gcc CXX=g++ /opt/python/"${version}"-"${version}"/bin/python -m build --wheel
1521
done

0 commit comments

Comments
 (0)