Skip to content

Commit

Permalink
ci(wheel): revert CIBW environment override
Browse files Browse the repository at this point in the history
it was screwing everything up.

Signed-off-by: Zach Lewis <[email protected]>
  • Loading branch information
zachlewis committed Sep 17, 2024
1 parent ce5db05 commit ab7e348
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,6 @@ manylinux-pypy_aarch64-image = "manylinux_2_28"
musllinux-x86_64-image = "musllinux_1_2"
musllinux-aarch64-image = "musllinux_1_2"

# For CIBW-based builds, optimize for size, not speed.
[[tool.cibuildwheel.overrides]]
select = "*"
inherit.environment = "append"
environment.SKBUILD_CMAKE_BUILD_TYPE = "MinSizeRel"


[tool.cibuildwheel.macos.environment]
# Specify a build directory so the repairwheel command can (re)find
# dependency libraries built by OpenImageIO.
Expand All @@ -143,12 +136,18 @@ SKBUILD_BUILD_DIR = "/tmp/build_oiio_wheels"
SKBUILD_CMAKE_ARGS = "-DOpenImageIO_BUILD_LOCAL_DEPS=TIFF; -DOpenImageIO_BUILD_MISSING_DEPS=all"
# std::filesystem is only available in macOS 10.15 and later.
MACOSX_DEPLOYMENT_TARGET = "10.15"
# Optimize for size (not speed)
SKBUILD_CMAKE_BUILD_TYPE = "MinSizeRel"

[tool.cibuildwheel.linux.environment]
SKBUILD_BUILD_DIR = "/tmp/build_oiio_wheels"
SKBUILD_CMAKE_ARGS = "-DOpenImageIO_BUILD_LOCAL_DEPS=TIFF; -DOpenImageIO_BUILD_MISSING_DEPS=all"
# Suppress warnings that cause linux cibuildwheel build to fail
CXXFLAGS = "-Wno-error=stringop-overflow -Wno-pragmas"
SKBUILD_CMAKE_BUILD_TYPE = "MinSizeRel"

[tool.cibuildwheel.windows.environment]
SKBUILD_CMAKE_BUILD_TYPE = "MinSizeRel"


# On macOS and Linux, run a custom repair-wheel-command after the build.
Expand Down

0 comments on commit ab7e348

Please sign in to comment.