Skip to content

Commit

Permalink
don't uninstall gmp etc on M$ (MPFR can't do install after uninstall)
Browse files Browse the repository at this point in the history
I hope this doesn't affect testing.
  • Loading branch information
skirpichev committed Mar 7, 2024
1 parent 8e2b75e commit 5306813
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ jobs:
pytest {package}/test/
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >
cd "D:\a\_temp\msys64\ucrt64" &&
delvewheel repair {wheel} -w {dest_dir} --add-path bin --no-mangle-all &&
cd "D:\a\gmpy\gmpy" &&
msys2 -c scripts/repair_ci_wheel_windows.sh
delvewheel repair {wheel} -w {dest_dir} --add-path bin --no-mangle-all
CIBW_REPAIR_WHEEL_COMMAND_LINUX: >
bash scripts/repair_ci_wheel.sh {dest_dir} {wheel}
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
Expand Down
3 changes: 2 additions & 1 deletion scripts/before_ci_build_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ then
cp $PREFIX/include/{gmp,mpfr,mpc}.h gmpy2/

touch finish_before_ci_build
else
elif [ "$OSTYPE" != "msys" ]
then
(cd gmp-*[0-9] && make install)
(cd mpfr-*[0-9] && make install)
(cd mpc-*[0-9] && make install)
Expand Down
6 changes: 3 additions & 3 deletions scripts/repair_ci_wheel_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
#rm -rf ${dest_dir}/*
#delvewheel repair ${wheel} -w ${dest_dir} --add-path ../gmpy2.libs
# cleanup libs from before_ci_build*.sh
(cd gmp-*[0-9] && make uninstall)
(cd mpfr-*[0-9] && make uninstall)
(cd mpc-*[0-9] && make uninstall)
#(cd gmp-*[0-9] && make uninstall)
#(cd mpfr-*[0-9] && make uninstall)
#(cd mpc-*[0-9] && make uninstall)

0 comments on commit 5306813

Please sign in to comment.