Skip to content

Support multiprocessing in spawn mode - #86

Merged
freakboy3742 merged 3 commits into
beeware:mainfrom
abdnh:subprocess
Oct 15, 2026
Merged

freakboy3742 merged 3 commits into
beeware:mainfrom
abdnh:subprocess

Conversation

@abdnh

@abdnh abdnh commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

This adds support for multiprocessing in spawn mode by setting sys.executable to /app/bin/python.

See beeware/briefcase-windows-VisualStudio-template#128 for context.

Closes #10

PR Checklist:

  • I will abide by the BeeWare Code of Conduct
  • I have read and have followed the CONTRIBUTING.md file
  • This PR was generated or assisted using an AI tool

Assisted-by: Claude Opus 5.5

@freakboy3742 freakboy3742 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed on beeware/briefcase#3078, I've modified this so that sys.executable="" when subprocesses aren't allowed; otherwise, this is great - thanks for the PR!

@freakboy3742
freakboy3742 merged commit c0d95bf into beeware:main Oct 15, 2026
30 checks passed
@abdnh
abdnh deleted the subprocess branch October 16, 2026 12:58
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.

Stub binary doesn't support sys.executable spawn/multiprocessing

2 participants