Skip to content

Commit

Permalink
BLD: Update build scripts for pywrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanSkocic committed Nov 18, 2023
1 parent 04c61c7 commit b58e11a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
17 changes: 9 additions & 8 deletions pywrapper/build.bat
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
rd /s /q build
rd /s /q dist
rd /s /q pyiapws.egg-info
del .\pyiapws\*.pyd

py -3.11 setup.py sdist
rd /s /q codata.egg-info
del .\codata\*.pyd

py -3.8 setup.py build_ext --inplace
py -3.9 setup.py build_ext --inplace
py -3.10 setup.py build_ext --inplace
py -3.11 setup.py build_ext --inplace
py -3.12 setup.py build_ext --inplace

py -3.8 setup.py bdist_wheel
py -3.9 setup.py bdist_wheel
py -3.10 setup.py bdist_wheel
py -3.11 setup.py bdist_wheel
py -3.8 -m build
py -3.9 -m build
py -3.10 -m build
py -3.11 -m build
py -3.12 -m build

py -3.8 -m unittest -v
py -3.9 -m unittest -v
py -3.10 -m unittest -v
py -3.11 -m unittest -v
py -3.12 -m unittest -v
15 changes: 8 additions & 7 deletions pywrapper/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,25 @@ fi
rm -r build
rm -r dist
rm -r *egg-info
rm ./pyiapws/g704*.so

py311 setup.py sdist
rm ./pycodata/codata*.so

py38 setup.py build_ext --inplace
py39 setup.py build_ext --inplace
py310 setup.py build_ext --inplace
py311 setup.py build_ext --inplace
py312 setup.py build_ext --inplace

py38 setup.py bdist_wheel
py39 setup.py bdist_wheel
py310 setup.py bdist_wheel
py311 setup.py bdist_wheel
py38 -m build
py39 -m build
py310 -m build
py311 -m build
py312 -m build

py38 -m unittest -v
py39 -m unittest -v
py310 -m unittest -v
py311 -m unittest -v
py312 -m unittest -v

if [[ "$OSTYPE" == "linux"* ]];then
cd ./dist
Expand Down

0 comments on commit b58e11a

Please sign in to comment.