Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cmake): Add an author warning that auto-calculated PYTHON_MODULE_EXTENSION may not respect SETUPTOOLS_EXT_SUFFIX during cross-compilation #5495

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

XuehaiPan
Copy link
Contributor

@XuehaiPan XuehaiPan commented Jan 16, 2025

Description

During cross-compilation, the variable PYTHON_MODULE_EXTENSION is calculated via the host Python interpreter rather than the target Python. For example, the build host is x64 Python and the target is ARM64, the calculated PYTHON_MODULE_EXTENSION will be .cpXY-win_amd64.pxd rather than .cpXY-win_arm64.pxd. See also:

This PR adds an author warning to prompt the developer to set PYTHON_MODULE_EXTENSION manually during cross-compilation.

Maybe related:

Suggested changelog entry:

Add an author warning that auto-calculated `PYTHON_MODULE_EXTENSION` may not respect `SETUPTOOLS_EXT_SUFFIX` during cross-compilation

@XuehaiPan XuehaiPan requested a review from henryiii as a code owner January 16, 2025 09:36
…LE_EXTENSION` may not respect `SETUPTOOLS_EXT_SUFFIX` during cross-compilation
@XuehaiPan XuehaiPan force-pushed the cross-compiling-ext branch from 4ee9aa0 to 06039bc Compare January 16, 2025 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant