Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt requires python built with newer SDK for macOS #505

Closed
psavery opened this issue Sep 8, 2020 · 1 comment
Closed

Qt requires python built with newer SDK for macOS #505

psavery opened this issue Sep 8, 2020 · 1 comment
Labels
tracking Tracking something in another repo

Comments

@psavery
Copy link
Collaborator

psavery commented Sep 8, 2020

Currently, both the anaconda and conda-forge distributions of python for macOS are built with an old SDK (10.9 or 10.10) to ensure backward compatibility on old OS's. Normally, you can simply specify an older MACOSX_DEPLOYMENT_TARGET, but they are going the extra mile and using older SDKs as well. Unfortunately, this is causing problems for us.

Qt turns on and off certain settings depending on which OS X SDK was used to build the binary that is running it, and the latest versions of Qt require newer SDKs for the binary. In our case, python is the binary running it. Since the python binaries on anaconda and conda-forge were built with an older OSX SDK, this results in a very buggy Qt application. The most noticeable bug is that many widgets (including the canvas) that are programmatically modified during runtime (e.g., setValue) do not update until you do something like re-size or de-focus the application.

Our current fix for this is to upload our own built python binary for mac that can be installed via conda install -c HEXRD python=3.8. But it will be nice if we can figure out some kind of upstream fix at some point, so we don't have to maintain our own python binaries.

Might be fixed by: conda-forge/python-feedstock#371

Issues caused (at least in part) by this issue:
#160
#196
#426
#492

@psavery
Copy link
Collaborator Author

psavery commented Mar 8, 2021

As of right now, the python from Anaconda is still built with too old of an SDK. But the python from conda-forge starting in python 3.8 works. Thus, on Mac, we have to ensure we we are using the python from conda-forge. The README has already been updated in #770. Closing this issue.

@psavery psavery closed this as completed Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracking Tracking something in another repo
Projects
None yet
Development

No branches or pull requests

1 participant