Standalone python3.dll
import library generator
Generates import libraries for the Stable ABI Python DLL for MinGW-w64 cross-compile targets.
See https://docs.python.org/3/c-api/stable.html for details.
This crate does not require Python 3 distribution files to be present on the cross-compile host system.
Example build.rs
script
The following script can be used to cross-compile Stable ABI PyO3 extension modules for Windows:
A compatible python3.dll
import library will be automatically created in
the directory pointed by PYO3_CROSS_LIB_DIR
environment variable.
Example cargo build
invocation
PYO3_CROSS_LIB_DIR=target/python3-dll