Skip to content

Instantly share code, notes, and snippets.

View phfaist's full-sized avatar

Philippe Faist phfaist

View GitHub Profile
@phfaist
phfaist / environment-pyinstaller-osx-compatibility.md
Last active September 16, 2023 13:29
Create mac binaries with pyinstaller that are backwards-compatible on Mac OS X

Make mac binaries with pyinstaller that are backwards-compatible on Mac OS X

Here are some instructions to freeze Python applications that are compatible with versions of OS X earlier than the one that PyInstaller is used on.

These steps involve compiling and installing Python, PyQt5 etc. manually. Surprisingly, on my 2016 MacBook, it didn't take too long to set up. The basic idea is that Apple's LLVM/clang compiler can produce binaries that are