Replies: 2 comments 5 replies
-
Why not use |
Beta Was this translation helpful? Give feedback.
1 reply
-
Could we set an extra environment variable or two, perhaps, to make this a bit easier? We could set CIBW_CURRENT_SELECTOR to the current selector inside the (before) build steps, and maybe CIBW_ARCH (no S) inside build-all and before-build? Splitting the build by CIBW_ARCH likely is nice for doing parallel builds, so not a bad solution, but just thinking of a possible general solution. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am using Github Actions and
cibuildwheel
to build wheels for Windowsx64
andwin32
. Additionally, I have aCIBW_BEFORE_BUILD: bash ./build.sh
script that executes right before building the wheel but contains a condition (if/else) that depends on whether it is anx64
build (i.e., omit acmake
flag) OR awin32
build (i.e., add acmake
flag). I was wondering if there was any way to add some logic inside of thebuild.sh
script to detect thatcibuildwheel
is currently building a wheel forwin32
so that I can set mycmake
flag accordingly?So, inside of
build.sh
, I'd be looking to do something like:Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions