Skip to content

Commit

Permalink
support for Python 3.13 build
Browse files Browse the repository at this point in the history
  • Loading branch information
rookiepeng committed Feb 14, 2025
1 parent 2120c9c commit 91601ba
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion batch_build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion batch_build_linux_cuda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion batch_build_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion batch_build_win_cuda.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 91601ba

Please sign in to comment.