maturin icon indicating copy to clipboard operation
maturin copied to clipboard

Cargo xwin configutation to download sdks and headers for target arch only.

Open kivsiak opened this issue 1 year ago • 1 comments

I need to build x86_64 library.

maturin build --release --target x86_64-pc-windows-msvc -i python3.10

All going fine. A got my wheel. But when i deploy it to CI i found my builds are extremely slow. Investigating i found that xwin download and splat ALL possible variants of headers and sdk. While i need only x86_64.

I found that XWIN_VARIANT, XWIN_ARCH, as other xwin env variables does nothing.

There should be way to narrow download arch according build target

kivsiak avatar Nov 23 '23 10:11 kivsiak

Pull requests are welcome.

messense avatar Nov 24 '23 02:11 messense

I found that XWIN_VARIANT, XWIN_ARCH, as other xwin env variables does nothing.

These env vars works now thanks to https://github.com/PyO3/maturin/pull/1961

messense avatar Mar 22 '24 02:03 messense