]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Always call freeze_support() if sys.frozen is True (#3275)
authorRichard Si <63936253+ichard26@users.noreply.github.com>
Mon, 26 Sep 2022 00:55:52 +0000 (20:55 -0400)
committerGitHub <noreply@github.com>
Mon, 26 Sep 2022 00:55:52 +0000 (17:55 -0700)
CHANGES.md
src/black/__init__.py

index a775c76e4a5871aa58fb335d361e9a03df5a6e06..6fb099040b304c94bac93a75288951d432e2e622 100644 (file)
@@ -31,6 +31,9 @@
 
 <!-- Changes to how Black is packaged, such as dependency requirements -->
 
 
 <!-- Changes to how Black is packaged, such as dependency requirements -->
 
+- Executables made with PyInstaller will no longer crash when formatting several files
+  at once on macOS. Native x86-64 executables for macOS are available once again.
+  (#3275)
 - Hatchling is now used as the build backend. This will not have any effect for users
   who install Black with its wheels from PyPI. (#3233)
 - Faster compiled wheels are now available for CPython 3.11 (#3276)
 - Hatchling is now used as the build backend. This will not have any effect for users
   who install Black with its wheels from PyPI. (#3233)
 - Faster compiled wheels are now available for CPython 3.11 (#3276)
index ded4a7368228949c1ec43448c7fc241e0604f10b..5b8c9749119c233d48ee817e10f3ffe33c8486fe 100644 (file)
@@ -1375,7 +1375,9 @@ def patch_click() -> None:
 
 
 def patched_main() -> None:
 
 
 def patched_main() -> None:
-    if sys.platform == "win32" and getattr(sys, "frozen", False):
+    # PyInstaller patches multiprocessing to need freeze_support() even in non-Windows
+    # environments so just assume we always need to call it if frozen.
+    if getattr(sys, "frozen", False):
         from multiprocessing import freeze_support
 
         freeze_support()
         from multiprocessing import freeze_support
 
         freeze_support()