Skip to content

Commit

Permalink
Add Dockerfile to cache ncbi-cxx-toolkit-public Conan build in `m…
Browse files Browse the repository at this point in the history
…anylinx_2_34`
  • Loading branch information
althonos committed Dec 8, 2024
1 parent 9de125f commit 4e2bdcd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
15 changes: 15 additions & 0 deletions pkg/build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM quay.io/pypa/manylinux_2_34_x86_64:latest
ENV CONAN_HOME=/var/cache/conan2

ADD vendor /src/vendor
ADD conanfile.txt /src/conanfile.txt

RUN yum install perl -y \
&& /opt/python/cp313-cp313/bin/pip install conan \
&& /opt/python/cp313-cp313/bin/conan export /src/vendor/ncbi-cxx-toolkit-conan --version 28.0.11 \
&& /opt/python/cp313-cp313/bin/conan profile detect \
&& /opt/python/cp313-cp313/bin/conan profile show \
&& /opt/python/cp313-cp313/bin/conan install /src/conanfile.txt --build=missing -s build_type=Release \
&& yum remove perl -y \
&& yum clean all -y

8 changes: 1 addition & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,12 @@ cmake.define.CMAKE_CXX_COMPILER_LAUNCHER = "sccache"
if.env.MOLD = true
cmake.define.CMAKE_LINKER_TYPE = "mold"

[[tool.scikit-build-overrides]]
if.env.CIBUILDWHEEL = true
cmake.define.PYNCBITK_INSTALL_LIBS = false

[tool.cibuildwheel]
before-build = ["pip install scikit-build-core-conan cython"]
build-frontend = { name = "pip", args = ["--no-build-isolation"] }
build-frontend = { name = "pip", args = ["--no-build-isolation", "--config-settings=cmake.define.PYNCBITK_INSTALL_LIBS=OFF"] }
build-verbosity = 1
free-threaded-support = false
#manylinux-x86_64-image = "quay.io/pypa/manylinux_2_34_x86_64"
manylinux-x86_64-image = "pyncbitk-manylinux_2_34"
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"

[tool.cibuildwheel.macos]
environment = { MACOSX_DEPLOYMENT_TARGET = "10.12" }
Expand Down

0 comments on commit 4e2bdcd

Please sign in to comment.