From 91601ba858063bdb7aa1361b143902bc24a2ba01 Mon Sep 17 00:00:00 2001 From: Zhengyu Peng Date: Thu, 13 Feb 2025 19:49:14 -0500 Subject: [PATCH] support for Python 3.13 build --- batch_build_linux.sh | 4 +++- batch_build_linux_cuda.sh | 4 +++- batch_build_win.bat | 4 +++- batch_build_win_cuda.bat | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/batch_build_linux.sh b/batch_build_linux.sh index 68d5480..1d81f1e 100644 --- a/batch_build_linux.sh +++ b/batch_build_linux.sh @@ -36,7 +36,8 @@ cmake --build . # Build Python extensions for multiple Python versions (Free Tier) echo "## Building radarsimpy with Cython ##" cd $workpath -# Build CPU-only extensions for Python 3.9-3.12 +# Build CPU-only extensions for Python 3.9-3.13 +conda run -n py313 python setup.py build_ext -b ./ --tier free --arch cpu conda run -n py312 python setup.py build_ext -b ./ --tier free --arch cpu conda run -n py311 python setup.py build_ext -b ./ --tier free --arch cpu conda run -n py310 python setup.py build_ext -b ./ --tier free --arch cpu @@ -73,6 +74,7 @@ cp -rf ./radarsimpy/* ./Linux_x86_64_CPU_FreeTier/radarsimpy # Clean and rebuild for Standard Tier rm -rf ./radarsimpy # Build CPU-only extensions for Standard Tier +conda run -n py313 python setup.py build_ext -b ./ --tier standard --arch cpu conda run -n py312 python setup.py build_ext -b ./ --tier standard --arch cpu conda run -n py311 python setup.py build_ext -b ./ --tier standard --arch cpu conda run -n py310 python setup.py build_ext -b ./ --tier standard --arch cpu diff --git a/batch_build_linux_cuda.sh b/batch_build_linux_cuda.sh index 10df975..88adbd2 100644 --- a/batch_build_linux_cuda.sh +++ b/batch_build_linux_cuda.sh @@ -36,7 +36,8 @@ cmake --build . # Build Python extensions for multiple Python versions (Free Tier) echo "## Building radarsimpy with Cython ##" cd $workpath -# Build GPU-enabled extensions for Python 3.9-3.12 +# Build GPU-enabled extensions for Python 3.9-3.13 +conda run -n py313 python setup.py build_ext -b ./ --tier free --arch gpu conda run -n py312 python setup.py build_ext -b ./ --tier free --arch gpu conda run -n py311 python setup.py build_ext -b ./ --tier free --arch gpu conda run -n py310 python setup.py build_ext -b ./ --tier free --arch gpu @@ -73,6 +74,7 @@ cp -rf ./radarsimpy/* ./Linux_x86_64_GPU_FreeTier/radarsimpy # Clean and rebuild for Standard Tier rm -rf ./radarsimpy # Build GPU-enabled extensions for Standard Tier +conda run -n py313 python setup.py build_ext -b ./ --tier standard --arch gpu conda run -n py312 python setup.py build_ext -b ./ --tier standard --arch gpu conda run -n py311 python setup.py build_ext -b ./ --tier standard --arch gpu conda run -n py310 python setup.py build_ext -b ./ --tier standard --arch gpu diff --git a/batch_build_win.bat b/batch_build_win.bat index 8396d0e..f63fbf4 100644 --- a/batch_build_win.bat +++ b/batch_build_win.bat @@ -40,7 +40,8 @@ cmake --build . --config Release REM Build Python extensions for multiple Python versions (Free Tier) ECHO ## Building radarsimpy with Cython ## CD %pwd% -REM Build for Python 3.9-3.12 with CPU support +REM Build for Python 3.9-3.13 with CPU support +conda.exe run -n py313 python setup.py build_ext -b ./ --tier free --arch cpu conda.exe run -n py312 python setup.py build_ext -b ./ --tier free --arch cpu conda.exe run -n py311 python setup.py build_ext -b ./ --tier free --arch cpu conda.exe run -n py310 python setup.py build_ext -b ./ --tier free --arch cpu @@ -76,6 +77,7 @@ RMDIR /Q/S .\radarsimpy REM Build Standard Tier version REM Build Python extensions for multiple Python versions (Standard Tier) +conda.exe run -n py313 python setup.py build_ext -b ./ --tier standard --arch cpu conda.exe run -n py312 python setup.py build_ext -b ./ --tier standard --arch cpu conda.exe run -n py311 python setup.py build_ext -b ./ --tier standard --arch cpu conda.exe run -n py310 python setup.py build_ext -b ./ --tier standard --arch cpu diff --git a/batch_build_win_cuda.bat b/batch_build_win_cuda.bat index f23d14b..4dcd93c 100644 --- a/batch_build_win_cuda.bat +++ b/batch_build_win_cuda.bat @@ -40,7 +40,8 @@ cmake --build . --config Release REM Build Python extensions for multiple Python versions (Free Tier) ECHO ## Building radarsimpy with Cython ## CD %pwd% -REM Build for Python 3.9-3.12 with GPU support +REM Build for Python 3.9-3.13 with GPU support +conda.exe run -n py313 python setup.py build_ext -b ./ --tier=free --arch=gpu conda.exe run -n py312 python setup.py build_ext -b ./ --tier=free --arch=gpu conda.exe run -n py311 python setup.py build_ext -b ./ --tier=free --arch=gpu conda.exe run -n py310 python setup.py build_ext -b ./ --tier=free --arch=gpu @@ -76,6 +77,7 @@ RMDIR /Q/S .\radarsimpy REM Build Standard Tier GPU version REM Build Python extensions for multiple Python versions (Standard Tier) +conda.exe run -n py313 python setup.py build_ext -b ./ --tier=standard --arch=gpu conda.exe run -n py312 python setup.py build_ext -b ./ --tier=standard --arch=gpu conda.exe run -n py311 python setup.py build_ext -b ./ --tier=standard --arch=gpu conda.exe run -n py310 python setup.py build_ext -b ./ --tier=standard --arch=gpu