Skip to content

Commit

Permalink
Use boost 1.69
Browse files Browse the repository at this point in the history
  • Loading branch information
wvangeit committed Nov 27, 2023
1 parent 7d504aa commit 64027d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.python }}*${{ matrix.arch }}
CIBW_BEFORE_ALL: "yum install -y gcc-gfortran lapack-devel boost169-devel boost169-filesystem boost169-program-options boost169-regex boost169-serialization blas-devel python3-devel python3-numpy"
CIBW_BEFORE_ALL: "yum install -y gcc-gfortran lapack-devel boost169-devel boost169-filesystem boost169-program-options boost169-regex boost169-serialization blas-devel"
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "itis_dakota"
version = "0.0.3"
description = "Dakota wheel built by the IT'IS Foundation"
description = "Dakota wheel built by the IT'IS Foundation, Zurich, Switzerland"
dependencies = []

[build-system]
Expand All @@ -10,14 +10,15 @@ build-backend = "py_build_cmake.build"

[tool.cibuildwheel]
before-build = ["pushd /opt/_internal && tar -xJf static-libs-for-embedding-only.tar.xz && popd", "pip install numpy", "pip install cmake --upgrade"]
before-all = ["yum install -y gcc-gfortran lapack-devel boost169-devel boost169-filesystem boost169-program-options boost169-regex boost169-serialization blas-devel"]
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"

[tool.py-build-cmake.sdist]
include = ["dakota/*", "CMakeLists.txt", "LICENSE.txt"]

[tool.py-build-cmake.cmake]
source_path = "."
options = {"DAKOTA_PYTHON_WRAPPER" = "ON", "BUILD_SHARED_LIBS"="OFF", "CMAKE_SKIP_INSTALL_RPATH" = "ON", "CMAKE_CXX_FLAGS"="-O3", "CMAKE_CXX_CFLAGS"="-O3", "CMAKE_POSITION_INDEPENDENT_CODE" = "ON", "DAKOTA_PYTHON_DIRECT_INTERFACE" = "ON"}
options = {"DAKOTA_PYTHON_WRAPPER" = "ON", "BUILD_SHARED_LIBS"="OFF", "CMAKE_SKIP_INSTALL_RPATH" = "ON", "CMAKE_POSITION_INDEPENDENT_CODE" = "ON", "DAKOTA_PYTHON_DIRECT_INTERFACE" = "ON", "BOOST_LIBRARYDIR" = "/usr/lib64/boost169", "BOOST_INCLUDEDIR" = "/usr/include/boost169"}
build_args = ["-j"]
build_type = "Release"
install_components = ["dakota_for_python"]

0 comments on commit 64027d3

Please sign in to comment.