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 e628be4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 86 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

0 comments on commit e628be4

Please sign in to comment.