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
cibuildwheelto build wheels for Windowsx64andwin32. Additionally, I have aCIBW_BEFORE_BUILD: bash ./build.shscript that executes right before building the wheel but contains a condition (if/else) that depends on whether it is anx64build (i.e., omit acmakeflag) OR awin32build (i.e., add acmakeflag). I was wondering if there was any way to add some logic inside of thebuild.shscript to detect thatcibuildwheelis currently building a wheel forwin32so that I can set mycmakeflag 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