Skip to content

Commit 7f3b473

Browse files
committed
making wheels build conan friendly
1 parent 8bc87e5 commit 7f3b473

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

.devcontainer/postCreateCommand.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ uv pip install conan
2424

2525
# setup conan profile and install dependencies
2626
conan profile detect --force
27-
conan install . --output-folder=build --build=missing
27+
conan install . --output-folder=build --build=missing -pr ./conan_profile

.github/workflows/deploy.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,15 @@ jobs:
9090
CIBW_BUILD_VERBOSITY: 1
9191
CIBW_DEBUG_TRACEBACK: TRUE
9292
CIBW_BEFORE_ALL_LINUX: |
93-
dnf install -y gmp gmp-devel ninja-build
93+
dnf install -y ninja-build
94+
95+
# install conan and C++ dependencies for the project
96+
pip install conan
97+
conan profile --detect
98+
9499
# install symengine
95-
./tools/install-deps.sh
100+
conan install . --output-folder=build --build=missing -pr ./conan_profile
101+
96102
CIBW_BEFORE_ALL_MACOS: |
97103
brew install gmp
98104
# install symengine
@@ -113,13 +119,6 @@ jobs:
113119
CIBW_ENVIRONMENT_MACOS: >
114120
CIBW="true"
115121
MACOSX_DEPLOYMENT_TARGET=15.0
116-
GMP_PREFIX="$(brew --prefix gmp)"
117-
CPPFLAGS="-I${GMP_PREFIX}/include ${CPPFLAGS}"
118-
CFLAGS="-I${GMP_PREFIX}/include ${CFLAGS}"
119-
CXXFLAGS="-I${GMP_PREFIX}/include ${CXXFLAGS}"
120-
LDFLAGS="-L${GMP_PREFIX}/lib ${LDFLAGS}"
121-
PKG_CONFIG_PATH="${GMP_PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}"
122-
CMAKE_PREFIX_PATH="${GMP_PREFIX}:$HOME/.local:${CMAKE_PREFIX_PATH}"
123122
CIBW_ENVIRONMENT_WINDOWS: >
124123
CIBW="true"
125124
# build 3.10, 3.11, 3.12, 3.13 (with GIL), and 3.14 (with GIL)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
6969
logging.level = "INFO"
7070
# read CMake version from CMakeLists.txt
7171
cmake.version = "CMakeLists.txt"
72-
cmake.build-type = "release"
72+
cmake.build-type = "Release"
7373
cmake.args = [
7474
"-DCMAKE_TOOLCHAIN_FILE=build/conan_toolchain.cmake",
7575
]

0 commit comments

Comments
 (0)