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

hook: win32ctypes.core: always collect the ctypes backend #8544

Merged
merged 1 commit into from
May 16, 2024

Conversation

rokm
Copy link
Member

@rokm rokm commented May 16, 2024

Always collect the ctypes backend (win32ctypes.core.ctypes modules), even if we are also collecting the cffi backend due to cffi being available in the build environment.

This prevents issues when import of cffi is blocked at run-time (similarly to how we do it to avoid issues with -OO optimization level) or when cffi is excluded from collection by user (for example, by using --exclude-module cffi).

Closes #8543.

Always collect the `ctypes` backend (`win32ctypes.core.ctypes` modules),
even if we are also collecting the `cffi` backend due to `cffi`
being available in the build environment.

This prevents issues when import of `cffi` is blocked at run-time
(similarly to how we do it to avoid issues with -OO optimization
level) or when `cffi` is excluded from collection by user (for
example, by using `--exclude-module cffi`).
@rokm rokm enabled auto-merge (rebase) May 16, 2024 12:13
@rokm rokm merged commit 2806e90 into pyinstaller:develop May 16, 2024
18 checks passed
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.

Could not import pywintypes or win32api from win32ctypes.pywin32
2 participants