Skip to content

Exclude python core dynload on python 3.12+.#216

Closed
AraHaan wants to merge 1 commit into
py2exe:developfrom
AraHaan:remove-dynload-python-core-on-cp312
Closed

Exclude python core dynload on python 3.12+.#216
AraHaan wants to merge 1 commit into
py2exe:developfrom
AraHaan:remove-dynload-python-core-on-cp312

Conversation

@AraHaan

@AraHaan AraHaan commented Nov 15, 2024

Copy link
Copy Markdown

Since the python core dynamic loading code cannot be made to work for Python 3.12+. The related code for loading the python core from zip file/resource section has been ifdef'd out. As such single file deployments for Python 3.12+ is not possible at all.

Contributes to #191.

@AraHaan

AraHaan commented Nov 15, 2024

Copy link
Copy Markdown
Author

When this gets merged I will rebase the 3.13 WIP support branch on top of the then updated master branch.

@albertosottile

Copy link
Copy Markdown
Member

I was planning to remove this support just in the Python code but, I guess it could make sense to merge this and exclude it also from the binaries...

@albertosottile albertosottile changed the base branch from master to develop July 15, 2025 21:41
@albertosottile albertosottile force-pushed the remove-dynload-python-core-on-cp312 branch from 190ba9f to 5c66002 Compare July 15, 2025 21:43
@albertosottile

Copy link
Copy Markdown
Member

@AraHaan Thanks for this contribution and sorry for the delay. It looks like we need some of the code under #ifdef to properly build. Can you fix the PR?

In the meantime, since we do not technically need this code to support 3.12 and 3.13, I am still going to proceed with the release of 0.14.0.0

@AraHaan

AraHaan commented Jul 22, 2025

Copy link
Copy Markdown
Author

@AraHaan Thanks for this contribution and sorry for the delay. It looks like we need some of the code under #ifdef to properly build. Can you fix the PR?

In the meantime, since we do not technically need this code to support 3.12 and 3.13, I am still going to proceed with the release of 0.14.0.0

Sure thing, will get to it as soon as I can.

Since the python core dynamic loading code cannot be made to work for Python 3.12+. The related code for loading the python core from zip file/resource section has been ifdef'd out. As such single file deployments for Python 3.12+ is not possible at all.
@AraHaan AraHaan force-pushed the remove-dynload-python-core-on-cp312 branch from 5c66002 to 73f40f7 Compare December 30, 2025 00:28
@AraHaan

AraHaan commented Dec 30, 2025

Copy link
Copy Markdown
Author

I just found the fix which happened to be in setup.py

@AraHaan

AraHaan commented Dec 30, 2025

Copy link
Copy Markdown
Author

I decided to close this in favor of #235 which also includes these changes as well as a few fixes to _memimporter and other bits of the C code with the fixed setup.py.

Also tested locally and it builds the package successfully with Python 3.13 & 3.14.

@AraHaan AraHaan closed this Dec 30, 2025
@AraHaan AraHaan deleted the remove-dynload-python-core-on-cp312 branch December 30, 2025 00:57
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.

2 participants