Skip to content

Commit

Permalink
Update for 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Jun 21, 2023
1 parent e438bd7 commit ffb4619
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 92 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cirrus_wheels_macos_arm64_task:
PYVER: 3.11
ABI: cp311
build_script:
./build-wheels-macos-brew.sh v1.20 ${ABI}
./build-wheels-macos.sh v1.21 ${ABI}
upload_script:
- ls -l wheelhouse/*.whl
- if test -n "${CIRRUS_TAG}"; then python${PYVER} -m pip install twine && python${PYVER} -m twine upload wheelhouse/*.whl; fi
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Build
env:
MAKEFLAGS: -j3
run: ./build-wheels-macos-brew.sh master ${{ matrix.abi }}
run: ./build-wheels-macos.sh master ${{ matrix.abi }}
- id: getfilename
run: echo "::set-output name=file::$(ls wheelhouse/*.whl)"
- name: Archive
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Build
run: |
docker pull openturns/manylinux2014_x86_64
docker run --rm -e MAKEFLAGS='-j2' -v `pwd`:/io openturns/manylinux2014_x86_64 /io/build-wheels-linux.sh v1.20 ${{ matrix.abi }}
docker run --rm -e MAKEFLAGS='-j2' -v `pwd`:/io openturns/manylinux2014_x86_64 /io/build-wheels-linux.sh v1.21 ${{ matrix.abi }}
- uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Build
run: |
docker pull openturns/archlinux-mingw
docker run --rm -e MAKEFLAGS='-j2' -v `pwd`:/io openturns/archlinux-mingw /io/build-wheels-mingw.sh v1.20 ${{ matrix.abi }}
docker run --rm -e MAKEFLAGS='-j2' -v `pwd`:/io openturns/archlinux-mingw /io/build-wheels-mingw.sh v1.21 ${{ matrix.abi }}
- uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
Expand All @@ -61,7 +61,7 @@ jobs:
- name: Build
env:
MAKEFLAGS: -j3
run: ./build-wheels-macos-brew.sh v1.20 ${{ matrix.abi }}
run: ./build-wheels-macos.sh v1.21 ${{ matrix.abi }}
- id: getfilename
run: echo "::set-output name=file::$(ls wheelhouse/*.whl)"
- name: Archive wheel
Expand Down
13 changes: 6 additions & 7 deletions build-wheels-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cmake -DCMAKE_INSTALL_PREFIX=$PWD/install -DUSE_SPHINX=OFF \
-DSWIG_COMPILE_FLAGS="-O1" \
..
make install
OLD_LIBOT=`basename install/lib/libOT.so.0.*`
OLD_LIBOT=`basename install/lib64/libOT.so.0.*`

# run a few tests
ctest -R "Ipopt|Bonmin|Dlib_std|NLopt|Study|SymbolicFunction|SquareMatrix|CMinpack|Ceres|Sample_csv|Pagmo" -E cppcheck --output-on-failure ${MAKEFLAGS}
Expand Down Expand Up @@ -68,19 +68,18 @@ NEW_LIBOT=`basename openturns.libs/libOT-*.so*`
cd -

# modules
for pkgnamever in otfftw-0.12 otmixmod-0.13 otmorris-0.13 otpmml-1.12 otrobopt-0.11 otsubsetinverse-1.9 otsvm-0.11
for pkgnamever in otfftw-0.13 otmixmod-0.14 otmorris-0.14 otrobopt-0.12 otsubsetinverse-1.10 otsvm-0.12
do
pkgname=`echo ${pkgnamever} | cut -d "-" -f1`
pkgver=`echo ${pkgnamever} | cut -d "-" -f2`
cd /tmp
git clone --depth 1 -b v${pkgver} https://github.com/openturns/${pkgname}.git && cd ${pkgname}
pkgver=${pkgver}.post4
./setVersionNumber.sh ${pkgver}
# pkgver=${pkgver}.post4
# ./setVersionNumber.sh ${pkgver}
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=$PWD/install -DUSE_SPHINX=OFF -DBUILD_DOC=OFF \
-DPYTHON_INCLUDE_DIR=/opt/python/${PYTAG}-${ABI}/include/python${PYVERD} -DPYTHON_LIBRARY=dummy \
-DPYTHON_EXECUTABLE=/opt/python/${PYTAG}-${ABI}/bin/python \
-DOpenTURNS_DIR=/tmp/openturns/build/install/lib/cmake/openturns \
-DPython_EXECUTABLE=/opt/python/${PYTAG}-${ABI}/bin/python \
-DOpenTURNS_DIR=/tmp/openturns/build/install/lib64/cmake/openturns \
..
make install
ctest -E cppcheck --output-on-failure ${MAKEFLAGS}
Expand Down
74 changes: 0 additions & 74 deletions build-wheels-macos-conda.sh

This file was deleted.

1 change: 1 addition & 0 deletions build-wheels-macos-brew.sh → build-wheels-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ TAG=${PYTAG}-${ABI}-${PLATFORM}
PYVER=${PYTAG:2:1}.${PYTAG:3}

# setup brew dependencies
brew update
brew install --overwrite coreutils openblas swig boost python@${PYVER} tbb nlopt cminpack ceres-solver bison flex hdf5 ipopt primesieve spectra pagmo libxml2
python${PYVER} -m pip install delocate
python${PYVER} -m pip debug --verbose
Expand Down
12 changes: 6 additions & 6 deletions build-wheels-mingw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,20 @@ grep -q dev <<< "${VERSION}" && exit 0
sudo pacman -Sy --noconfirm mingw-w64-fftw mingw-w64-agrum # for otfftw, otagrum

# modules
for pkgnamever in otfftw-0.12 otmixmod-0.13 otmorris-0.13 otpmml-1.12 otrobopt-0.11 otsubsetinverse-1.9 otsvm-0.11
for pkgnamever in otfftw-0.13 otmixmod-0.14 otmorris-0.14 otrobopt-0.12 otsubsetinverse-1.10 otsvm-0.12
do
pkgname=`echo ${pkgnamever} | cut -d "-" -f1`
pkgver=`echo ${pkgnamever} | cut -d "-" -f2`
cd /tmp
git clone --depth 1 -b v${pkgver} https://github.com/openturns/${pkgname}.git && cd ${pkgname}
pkgver=${pkgver}.post4
./setVersionNumber.sh ${pkgver}
# pkgver=${pkgver}.post4
# ./setVersionNumber.sh ${pkgver}
PREFIX=$PWD/install
${ARCH}-w64-mingw32-cmake \
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
-DPYTHON_INCLUDE_DIR=${MINGW_PREFIX}/include/python${PYVER} \
-DPYTHON_LIBRARY=${MINGW_PREFIX}/lib/libpython${PYVER}.dll.a \
-DPYTHON_EXECUTABLE=/usr/bin/${ARCH}-w64-mingw32-python${PYVER}-bin \
-DPython_INCLUDE_DIR=${MINGW_PREFIX}/include/python${PYVER} \
-DPython_LIBRARY=${MINGW_PREFIX}/lib/libpython${PYVER}.dll.a \
-DPython_EXECUTABLE=/usr/bin/${ARCH}-w64-mingw32-python${PYVER}-bin \
-DUSE_SPHINX=OFF -DBUILD_DOC=OFF \
-DOpenTURNS_DIR=/tmp/openturns/install/lib/cmake/openturns \
.
Expand Down

0 comments on commit ffb4619

Please sign in to comment.