Skip to content

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

Merged
rokm merged 1 commit into
pyinstaller:developfrom
rokm:hook-pywin32-ctypes
May 16, 2024
Merged

hook: win32ctypes.core: always collect the ctypes backend#8544
rokm merged 1 commit into
pyinstaller:developfrom
rokm:hook-pywin32-ctypes

Conversation

@rokm

@rokm rokm commented May 16, 2024

Copy link
Copy Markdown
Member

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
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 18, 2024
@rokm
rokm deleted the hook-pywin32-ctypes branch August 8, 2024 18:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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