Fix for apps using numpy on macos

https://github.com/flet-dev/serious-python/issues/85#issuecomment-2065000974
This commit is contained in:
Feodor Fitsner 2024-04-18 12:18:06 -07:00
parent 7bc5081b00
commit 39e2bd8883
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ import certifi, os, runpy, socket, sys, traceback
os.environ["REQUESTS_CA_BUNDLE"] = certifi.where() os.environ["REQUESTS_CA_BUNDLE"] = certifi.where()
os.environ["SSL_CERT_FILE"] = certifi.where() os.environ["SSL_CERT_FILE"] = certifi.where()
# fix for: https://github.com/flet-dev/serious-python/issues/85#issuecomment-2065000974
os.environ["OPENBLAS_NUM_THREADS"] = "1"
if os.getenv("FLET_PLATFORM") == "android": if os.getenv("FLET_PLATFORM") == "android":
import ssl import ssl